music-to-mp3.bash: allow interrupting opus to mp3 (lossy to lossy) conversion

This commit is contained in:
Aminda Suomalainen 2026-05-02 13:46:58 +03:00
parent bd8110a996
commit 4b854c9ff5
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -24,6 +24,12 @@ for flac in *.flac; do
done
# Convert opus files too since yt-dlp has resulted into them
# However as it's lossy to lossy conversion, allow user to cancel
echo "WARNING! Lossly to lossy conversion! Press CTRL - C to cancel in 10 seconds."
sleep 1
echo "opus to mp3 conversion begins in 10 seconds"
sleep 10
for opus in *.opus; do
if [ -f "$opus.mp3" ]; then
echo "$opus.mp3 already exists"