[print_meta_cue] Removed trackidList field; Removed erroneous quotation mark for DISCID

This commit is contained in:
ayakael 2018-07-16 06:22:24 -08:00
parent 297a1a01a8
commit 63696a2dd7
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -17,7 +17,7 @@ print_meta_cue() {
local trackmetaList=($( sed -n '/TRACK 01/,$p' ${CUE} | tr -d '\n' | awk 'BEGIN {RS="TRACK"}{print $0}' | tail -n +2))
# [Output] variable generator
echo -n "DISCID=\"$(sed 's|\ \ .*||' "${CUE}" | grep -a "REM DISCID" | sed 's|REM DISCID ||');"
echo -n "DISCID=$(sed 's|\ \ .*||' "${CUE}" | grep -a "REM DISCID" | sed 's|REM DISCID ||');"
echo -n "PERFORMER=\"$(sed 's|\ \ .*||' "${CUE}" | grep -a "PERFORMER" | sed 's|PERFORMER ||' | sed 's|\"||g')\";"
echo -n "ALBUM=\"$(sed 's|\ \ .*||' "${CUE}" | grep -a "TITLE" | sed 's|TITLE ||' | sed 's|\"||g')\";"
echo -n "DATE=$(sed 's|\ \ .*||' "${CUE}" | grep -a "REM DATE" | sed 's|REM DATE ||');"
@ -27,7 +27,6 @@ print_meta_cue() {
for trackmeta in ${trackmetaList[@]}; do
echo -n "titleList[${COUNT}]=\"$(echo ${trackmeta} | awk 'BEGIN {RS=" "}{print $0}' | grep -a TITLE | sed 's|TITLE ||' | sed 's|\"||g')\";"
echo -n "performerList[${COUNT}]=\"$(echo ${trackmeta} | awk 'BEGIN {RS=" "}{print $0}' | grep -a PERFORMER | sed 's|PERFORMER ||' | sed 's|\"||g')\";"
echo -n "trackidList[${COUNT}]=\"${trackidList[${COUNT}]}\";"
local COUNT=$(( ${COUNT} + 1 ))
done
}