add normalize option
This commit is contained in:
parent
bc8d73d2d9
commit
3833a1cdf1
17
atom
17
atom
@ -18,6 +18,7 @@ declare -A \
|
||||
destinationformat \
|
||||
destinationfrequency \
|
||||
destinationid \
|
||||
destinationnormalize \
|
||||
destinationpath \
|
||||
destinationquality \
|
||||
destinationrename \
|
||||
@ -159,6 +160,21 @@ getConfigDestination() {
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
'normalize')
|
||||
case $value in
|
||||
'true|on|yes')
|
||||
destinationnormalize["$destination"]=1
|
||||
;;
|
||||
'false|off|no')
|
||||
destinationnormalize["$destination"]=0
|
||||
;;
|
||||
*)
|
||||
echo "normalize takes values:" \
|
||||
"'yes' ,'true' ,'on', 'no', 'false',"\
|
||||
"'off'"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
'bitrate')
|
||||
expr='^[0-9]*$'
|
||||
if ! [[ $value =~ $expr ]]
|
||||
@ -972,6 +988,7 @@ cat <<EOF
|
||||
$destination|Path|${destinationpath[$destination]}
|
||||
|Format|${destinationformat[$destination]}
|
||||
|Quality|${destinationquality[$destination]}
|
||||
|Normalize|${destinationnormalize[$destination]}
|
||||
|Channels|${destinationchannels[$destination]}
|
||||
|Frequency|${destinationfrequency[$destination]}
|
||||
|Path Change|${destinationrenamepath[$destination]}
|
||||
|
||||
@ -53,6 +53,7 @@ Sections:
|
||||
implement your preferred format. A good candidate is FIXME).
|
||||
|
||||
Optional parameters:
|
||||
* normalize <yes>/<no>: Normalize output files.
|
||||
* rename <string>: Destination files will be named according to <string>,
|
||||
after expansion of special strings:
|
||||
%{album},
|
||||
|
||||
@ -15,6 +15,7 @@ skip /zzz-atrier
|
||||
path /mnt/Musique-OggQ2
|
||||
format vorbis
|
||||
quality 1
|
||||
normalize yes
|
||||
channels 2
|
||||
frequency 44100
|
||||
|
||||
@ -27,6 +28,7 @@ copy_mime-type text/*
|
||||
path /mnt/Musique-mp3.test
|
||||
format mp3
|
||||
bitrate 96
|
||||
normalize yes
|
||||
|
||||
# rename file, path unchanged
|
||||
rename %{track}--%{artist}-%{title}
|
||||
@ -38,6 +40,7 @@ skip_mime-type text/*
|
||||
[asterisk]
|
||||
path /mnt/Musique-asterisk
|
||||
format vorbis
|
||||
normalize yes
|
||||
channels 1
|
||||
frequency 8000
|
||||
skip_mime-type image/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user