Update watch.sh

This commit is contained in:
Jelle Jansen 2025-04-12 17:00:15 +02:00
parent 5e717c6e33
commit b491ad6abf

View File

@ -14,8 +14,10 @@ do
sleep 1 sleep 1
# Controleer of het bestand een video- of audio-bestand is # Controleer of het bestand een video- of audio-bestand is
if [[ "$FILE" == *.mp4 || "$FILE" == *.MP4 || "$FILE" == *.avi || "$FILE" == *.mov || "$FILE" == *.flv || "$FILE" == *.wmv ]]; then if [[ "$FILE" == *.mp4 || "$FILE" == *.MP4 || "$FILE" == *.avi || "$FILE" == *.mov || "$FILE" == *.flv || "$FILE" == *.wmv || "$FILE" == *.mp3 || "$FILE" == *.wav ]]; then
echo "Nieuw bestand gedetecteerd: $FILE" if [[ "$FILE" != "/watched/watch.sh" ]]; then # Vermijd het verwerken van het script zelf
extract_audio "$FILE" echo "Nieuw bestand gedetecteerd: $FILE"
extract_audio "$FILE"
fi
fi fi
done done