From 8c216ffb82c4c755e47cd44e7aeaa287e3b0b9d7 Mon Sep 17 00:00:00 2001 From: shibao Date: Tue, 3 Sep 2024 20:34:45 -0400 Subject: [PATCH] improve replaygain tagging --- home/default/scripts/standardize-music | 5 +++-- home/default/scripts/sync-car | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/home/default/scripts/standardize-music b/home/default/scripts/standardize-music index 4400b7f..57c3c48 100755 --- a/home/default/scripts/standardize-music +++ b/home/default/scripts/standardize-music @@ -1,5 +1,5 @@ #!/usr/bin/env sh -set -oux pipefail +set -ou pipefail count=`ls -1 *.OGG 2>/dev/null | wc -l` if [ $count != 0 ]; then @@ -37,4 +37,5 @@ if [ $count != 0 ]; then done fi -rsgain easy -p no_album -m MAX -S ./ +shopt -s nullglob +rsgain custom -a -s i -L -S *.m4a *.mp3 *.ogg *.opus diff --git a/home/default/scripts/sync-car b/home/default/scripts/sync-car index a09fe34..fd62b7a 100755 --- a/home/default/scripts/sync-car +++ b/home/default/scripts/sync-car @@ -17,5 +17,5 @@ sudo generate-playlists cd /home/default echo "unmounting /run/media/default/MUSIC" -sudo umount /run/media/default/MUSIC +sudo umount /dev/disk/by-uuid/E6F8-C183 sudo rmdir /run/media/default/MUSIC