Permalink
Browse files

ignore CUESHEET tag && ignore invalid tag

  • Loading branch information...
1 parent 9f2071e commit 34a9fc8fba53007f752023bb01783e545214947b @realmyst committed Apr 2, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 split-cue-flac
View
@@ -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

0 comments on commit 34a9fc8

Please sign in to comment.