diff --git a/to_opus.sh b/to_opus.sh index 3a25ef5..97dc0bc 100644 --- a/to_opus.sh +++ b/to_opus.sh @@ -45,12 +45,12 @@ for file in **/*.@($extension); do }') - #is_video=$(ffprobe "$file" -v 0 -show_entries stream=codec_type -of compact=p=0:nk=1:s="\ " | grep video) - #if [[ -n "$is_video" ]]; then - eval "$command" - #else - #eval "$command" && rm "$file" - #fi + is_video=$(ffprobe "$file" -v 0 -show_entries stream=codec_type -of compact=p=0:nk=1:s="\ " | grep video) + if [[ -n "$is_video" ]]; then + echo "$file could possibly be a video file and will not be converted" + else + eval "$command" && rm "$file" + fi done