From 4512e6aa532b76533c4f1190ae5fceba2aa7a782 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sat, 8 Jul 2023 17:41:31 +0400 Subject: [PATCH] In radioctl convert added check for existing ogg file. --- tools/radioctl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/radioctl b/tools/radioctl index cf9a59e..c9a83dc 100644 --- a/tools/radioctl +++ b/tools/radioctl @@ -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";