1
0

In radioctl convert added check for existing ogg file.

This commit is contained in:
Alexander Andreev 2023-07-08 17:41:31 +04:00
parent abf815ddf3
commit 4512e6aa53
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -23,6 +23,9 @@ case $1 in
if [[ "$file" == *.ogg ]]; then
continue;
fi
if [ -f "${file%.*}.ogg" ]; then
continue;
fi
ffmpeg -hide_banner -i "$file" -y -vn -c:a libvorbis -b:a 128k "${file%.*}.ogg";
if [ $? -eq 0 ] && [ $3 = "del" ]; then
rm "$file";