From 3b8d7e0fa736a97b89c0f508381839e1730c2107 Mon Sep 17 00:00:00 2001 From: mitsudori Date: Tue, 26 Nov 2024 08:21:53 +0000 Subject: [PATCH] Adicionar main.sh --- main.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 main.sh diff --git a/main.sh b/main.sh new file mode 100644 index 0000000..f078ed8 --- /dev/null +++ b/main.sh @@ -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