[gen_mtag] Now knows to put escape character in front of " characters in metadata
This commit is contained in:
parent
1dd176fe47
commit
c2c3cc8ab8
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ gen_mtag() {
|
||||||
for tag in ${tagList[@]}; do
|
for tag in ${tagList[@]}; do
|
||||||
|
|
||||||
# Determines current tag value
|
# Determines current tag value
|
||||||
local CUR_TAG=$(awk -v tag="${tag}" 'BEGIN{RS=";";FS="=";}{if($1==tag){print $2}}' <<< ${metadata_track})
|
local CUR_TAG=$(awk -v tag="${tag}" 'BEGIN{RS=";";FS="=";}{if($1==tag){print $2}}' <<< ${metadata_track} | sed 's|"|\\"|'g)
|
||||||
|
|
||||||
# Determines previous tag value
|
# Determines previous tag value
|
||||||
local PREV_TAG=$(awk -v tag="${tag}" 'BEGIN{RS=";";FS="=";}{if($1==tag){print $2}}' <<< ${metadata_trackList[$(( ${COUNT} - 1 ))]})
|
local PREV_TAG=$(awk -v tag="${tag}" 'BEGIN{RS=";";FS="=";}{if($1==tag){print $2}}' <<< ${metadata_trackList[$(( ${COUNT} - 1 ))]} | sed 's|"|\\"|'g)
|
||||||
|
|
||||||
# Compares previous tag value and current tag value. If there is a difference or we're dealing with the first track,
|
# Compares previous tag value and current tag value. If there is a difference or we're dealing with the first track,
|
||||||
# print the value in MTAG format
|
# print the value in MTAG format
|
||||||
|
|
Loading…
Reference in a new issue