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