From 4b854c9ff593ceea2b45313ebdd664c9f47ceb81 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sat, 2 May 2026 13:46:58 +0300 Subject: [PATCH] music-to-mp3.bash: allow interrupting opus to mp3 (lossy to lossy) conversion --- bash/music-to-mp3.bash | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bash/music-to-mp3.bash b/bash/music-to-mp3.bash index 5fe23b1..a9aea0b 100755 --- a/bash/music-to-mp3.bash +++ b/bash/music-to-mp3.bash @@ -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"