Adicionar main.sh
This commit is contained in:
parent
b92b764580
commit
3b8d7e0fa7
13
main.sh
Normal file
13
main.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
array=("DATE" "TOTALTRACKS" "TRACKNUMBER" "ALBUM" "ARTIST" "TITLE")
|
||||||
|
|
||||||
|
for i in *.flac; do
|
||||||
|
filename=${i%.*}
|
||||||
|
flac --decode -c "$i" | wavpack -i "-" -hhb2 -y -o "$filename.wv";
|
||||||
|
done
|
||||||
|
|
||||||
|
for n in ${array[@]}; do
|
||||||
|
tag=`metaflac --show-tag=$n "$i"`;
|
||||||
|
wvtag -w "$tag" "$filename.wv" ;
|
||||||
|
done
|
Loading…
Reference in a new issue