From 63e48d6165a3ffb65a5448c072acc9cc927e13dd Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 14 Jul 2025 16:26:29 +0200 Subject: [PATCH] remove replay gain apply --- albentohandy | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/albentohandy b/albentohandy index c68da8e..696f18a 100755 --- a/albentohandy +++ b/albentohandy @@ -25,7 +25,6 @@ OPTIONS -3 convert to mp3 -c cover.jpg stehen lassen -f convert to flac - -g replay gain apply (t)rack or (a)lbum -h show this help -i input Datei default=albumlist -m kopiert das Arbeitsverzeichnis @@ -211,14 +210,8 @@ read_flac_to_ogg_tags() local outputfile="$2" local coverfile="${inputfile%/*}/cover.txt" - if [ -z "$replaygainapply" ]; then - metaflac --export-tags-to=- $inputfile \ - | vorbiscomment --commentfile - --write $outputfile - else - metaflac --export-tags-to=- $inputfile \ - | sed '/REPLAYGAIN/d' \ - | vorbiscomment --commentfile - --write $outputfile - fi + metaflac --export-tags-to=- $inputfile \ + | vorbiscomment --commentfile - --write $outputfile [ -f $coverfile ] \ || return 0 @@ -233,7 +226,7 @@ encoding_flac_to_ogg() local outputfile="$2" nice --adjustment=10 flac --totally-silent --stdout --decode \ - $replaygainapply "$inputfile" \ + "$inputfile" \ | nice --adjustment=15 oggenc --quiet --quality 6 \ --output "$outputfile" - } @@ -499,7 +492,6 @@ main() "3") format="mp3" ;; "c") cover=true ;; "f") format="flac" ;; - "g") declare -xg replaygainapply="--apply-replaygain-which-is-not-lossless=$OPTARG" ;; "h") Usage && return 0 ;; "i") albumlist="$OPTARG" ;; "m") cptodest=true && dest="$OPTARG" && ((phase++)) ;; -- 2.47.3