Revert "[gen_metatrack] Now outputs using {TRACKID};{DURATION};\t[...] rather than {TRACKID};{DURATION};[...]"

This reverts commit 12402346b8.
This commit is contained in:
ayakael 2018-07-11 07:31:11 -08:00
parent 12402346b8
commit c8ce3fd26a
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -24,7 +24,7 @@ gen_metatrack() {
while [[ ${COUNT} -le ${TOTALTRACKS} ]]; do
local TRACKID="$(metaflac --list --block-number=0 $(printf "${WRK_DIR}/split-track%02d.flac" ${COUNT}) | awk 'BEGIN{FS=": "}{if($1==" MD5 signature") {print $2}}')"
local DURATION="$(soxi -D $(printf "${WRK_DIR}/split-track%02d.flac" ${COUNT}))"
printf "%s\t" ${TRACKID};${DURATION};
printf "%s;" ${TRACKID} ${DURATION}
rm $(printf "${WRK_DIR}/split-track%02d.flac" ${COUNT})
local COUNT=$(( ${COUNT} + 1 ))
done