In radioctl convert added check for existing ogg file.
This commit is contained in:
parent
abf815ddf3
commit
4512e6aa53
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user