fix music scripts

This commit is contained in:
shibao 2025-05-05 09:23:23 -04:00
parent 70bac5be34
commit 33a73e4bf6
2 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,12 @@ if [ $count != 0 ]; then
rename JPG jpg *.JPG rename JPG jpg *.JPG
fi fi
# rename .jpeg -> .jpg
count=`ls -1 *.jpeg 2>/dev/null | wc -l`
if [ $count != 0 ]; then
rename jpeg jpg *.jpeg
fi
# remove exif except orientation from .jpg # remove exif except orientation from .jpg
count=`ls -1 *.jpg 2>/dev/null | wc -l` count=`ls -1 *.jpg 2>/dev/null | wc -l`
if [ $count != 0 ]; then if [ $count != 0 ]; then

View File

@ -50,4 +50,4 @@ if [ $count != 0 ]; then
fi fi
shopt -s nullglob shopt -s nullglob
rsgain custom -S -L -a -s i *.mp3 *.flac rsgain custom --skip-existing --lowercase --tagmode=i *.mp3 *.flac