tweak song script

This commit is contained in:
shibao 2024-11-26 13:24:23 -05:00
parent 777b011479
commit 59f0106d5e
2 changed files with 5 additions and 5 deletions

View File

@ -3,5 +3,5 @@ set -eou pipefail
echo "$1" | wget-titles-from-urls >> titles.txt echo "$1" | wget-titles-from-urls >> titles.txt
echo "$1" | youtube-audio echo "$1" | youtube-audio
standardize-music
ls -Art | tail -n 1 | xargs -d '\n' kid3 ls -Art | tail -n 1 | xargs -d '\n' kid3
standardize-music

View File

@ -9,7 +9,7 @@ fi
count=`ls -1 *.ogg 2>/dev/null | wc -l` count=`ls -1 *.ogg 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then
for i in *.ogg; do for i in *.ogg; do
ffmpeg -y -i "$i" "${i%.*}.mp3" && rm "$i" ffmpeg -y -i "$i" -map_metadata 0:s:a:0 "${i%.*}.mp3" && rm "$i"
done done
fi fi
@ -21,7 +21,7 @@ fi
count=`ls -1 *.webm 2>/dev/null | wc -l` count=`ls -1 *.webm 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then
for i in *.webm; do for i in *.webm; do
ffmpeg -y -i "$i" "${i%.*}.mp3" && rm "$i" ffmpeg -y -i "$i" -map_metadata 0:s:a:0 "${i%.*}.mp3" && rm "$i"
done done
fi fi
@ -33,7 +33,7 @@ fi
count=`ls -1 *.opus 2>/dev/null | wc -l` count=`ls -1 *.opus 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then
for i in *.opus; do for i in *.opus; do
ffmpeg -y -i "$i" "${i%.*}.mp3" && rm "$i" ffmpeg -y -i "$i" -map_metadata 0:s:a:0 "${i%.*}.mp3" && rm "$i"
done done
fi fi
@ -45,7 +45,7 @@ fi
count=`ls -1 *.m4a 2>/dev/null | wc -l` count=`ls -1 *.m4a 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then
for i in *.m4a; do for i in *.m4a; do
ffmpeg -y -i "$i" "${i%.*}.mp3" && rm "$i" ffmpeg -y -i "$i" -map_metadata 0:s:a:0 "${i%.*}.mp3" && rm "$i"
done done
fi fi