diff --git a/main.sh b/main.sh index f078ed8..95d9047 100644 --- a/main.sh +++ b/main.sh @@ -1,10 +1,11 @@ #!/usr/bin/env bash - +# 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 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"; + flac --decode -c "$i" | wavpack -i $1 "-" -hhb2 -y -o "$filename.wv"; done for n in ${array[@]}; do