Skip to content

Commit

Permalink
ignore CUESHEET tag && ignore invalid tag
Browse files Browse the repository at this point in the history
  • Loading branch information
realmyst committed Apr 2, 2011
1 parent 9f2071e commit 34a9fc8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion split-cue-flac
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,14 @@ copy_tags_from_parent() {
do
if [ ! -f $TAGS_FILE ] ; then
while read line ; do
TAG=`echo $line | awk -F= '{print $1}'`
if [ `expr match "$line" '.*=.*'` -gt 0 ] ; then
TAG=`echo $line | awk -F= '{print $1}'`
else
continue
fi
# ignoring tag CUESHEET
if [ "x$TAG" = "xCUESHEET" ]; then continue; fi

exist="`metaflac --show-tag="${TAG}" "${file}"`"
if [ -z "${exist}" ] ; then
echo $line >> $TAGS_FILE
Expand Down

0 comments on commit 34a9fc8

Please sign in to comment.