Atualizar main.sh
This commit is contained in:
parent
ef3b446acf
commit
a5446ad79c
17
main.sh
17
main.sh
|
@ -2,13 +2,12 @@
|
||||||
# The getopt are for extra param, i like to use -x6 for extra encode processing
|
# The getopt are for extra param, i like to use -x6 for extra encode processing
|
||||||
# You can read more on the docs: https://www.wavpack.com/wavpack_doc.html
|
# You can read more on the docs: https://www.wavpack.com/wavpack_doc.html
|
||||||
array=("DATE" "TOTALTRACKS" "TRACKNUMBER" "ALBUM" "ARTIST" "TITLE")
|
array=("DATE" "TOTALTRACKS" "TRACKNUMBER" "ALBUM" "ARTIST" "TITLE")
|
||||||
|
trap "echo Exited!; exit;" SIGINT SIGTERM
|
||||||
for i in *.flac; do
|
for i in *.flac ; do
|
||||||
filename=${i%.*}
|
filename=${i%.*};
|
||||||
flac --decode -c "$i" | wavpack -i $1 "-" -hhb2 -y -o "$filename.wv";
|
flac --decode -c "$i" | wavpack -i $1 "-" -hhb2 -y -o "$filename.wv";
|
||||||
done
|
for n in ${array[@]}; do
|
||||||
|
tag=`metaflac --show-tag=$n "$i"`;
|
||||||
for n in ${array[@]}; do
|
wvtag -w "$tag" "$filename.wv" ;
|
||||||
tag=`metaflac --show-tag=$n "$i"`;
|
done
|
||||||
wvtag -w "$tag" "$filename.wv" ;
|
done
|
||||||
done
|
|
Loading…
Reference in a new issue