[print_meta_cue] Removed trackidList field; Removed erroneous quotation mark for DISCID
This commit is contained in:
parent
297a1a01a8
commit
63696a2dd7
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue