From da3ff32cf7fbcf63b9db84975d35c3362b418602 Mon Sep 17 00:00:00 2001 From: esche Date: Thu, 18 May 2023 15:43:17 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eto=5Fopus.sh=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- to_opus.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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