Correctifs script de conversion de musique

This commit is contained in:
Breizh 2021-07-02 14:26:57 +02:00
parent 1b295fd5de
commit 58fab3072d

View file

@ -29,7 +29,7 @@ do
continue continue
fi 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 then
dstfile="$(basename -s .flac "$file").opus" dstfile="$(basename -s .flac "$file").opus"
@ -49,7 +49,7 @@ do
( (
echo " $file" 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" echo "[${green} OK ${reset}] $file"
) & ) &
else else