From 5e717c6e33eee6b9ea6ac4adb1d051e3e5b81ac2 Mon Sep 17 00:00:00 2001 From: Jelle Jansen Date: Sat, 12 Apr 2025 16:57:51 +0200 Subject: [PATCH] Update watch.sh --- watch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watch.sh b/watch.sh index 6843ffc..4ab28f6 100644 --- a/watch.sh +++ b/watch.sh @@ -8,13 +8,13 @@ extract_audio() { } # Begin de loop om de map in de gaten te houden -inotifywait -m -r -e create /watched --format '%w%f' | while read FILE +inotifywait -m -r -e create --format '%w%f' /watched | while read FILE do # Wacht tot het bestand volledig is geschreven sleep 1 # Controleer of het bestand een video- of audio-bestand is - if [[ "$FILE" == *.mp4 || "$FILE" == *.MP4 || "$FILE" == *.avi ]]; then + if [[ "$FILE" == *.mp4 || "$FILE" == *.MP4 || "$FILE" == *.avi || "$FILE" == *.mov || "$FILE" == *.flv || "$FILE" == *.wmv ]]; then echo "Nieuw bestand gedetecteerd: $FILE" extract_audio "$FILE" fi