Update watch.sh
This commit is contained in:
parent
5e717c6e33
commit
b491ad6abf
8
watch.sh
8
watch.sh
@ -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
|
Loading…
x
Reference in New Issue
Block a user