From 58fab3072d65d450a70576383ec0aba7c15f7b60 Mon Sep 17 00:00:00 2001 From: Breizh Date: Fri, 2 Jul 2021 14:26:57 +0200 Subject: [PATCH] Correctifs script de conversion de musique --- .local/bin/music-convert | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/bin/music-convert b/.local/bin/music-convert index 8e599df..2163c72 100755 --- a/.local/bin/music-convert +++ b/.local/bin/music-convert @@ -29,7 +29,7 @@ do continue fi - if [[ "${file}" =~ .flac$ ]] + if [[ "${file}" =~ .flac$ ]] || [[ "${dir}" == "Vidéos/" && "$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$file")" =~ video/ ]] then dstfile="$(basename -s .flac "$file").opus" @@ -49,7 +49,7 @@ do ( echo " $file" - ffmpeg -n -loglevel error -i "$file" "file:${dstdir}${dstfile}" + ffmpeg -n -loglevel error -i "file:$file" "file:${dstdir}${dstfile}" echo "[${green} OK ${reset}] $file" ) & else