From e9ce1ac1cf9b53526a9dfa0840df7f5ac3add4e4 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Sat, 4 Dec 2004 05:52:45 +0000 Subject: [PATCH] Add FLAC tagging to vorbis function. --- tools/cuetag.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/cuetag.sh b/tools/cuetag.sh index e65e042..de6f117 100755 --- a/tools/cuetag.sh +++ b/tools/cuetag.sh @@ -23,6 +23,15 @@ vorbis() # -a to append to existing comments VORBISCOMMENT="vorbiscomment -w -c -" + case "$2" in + *.[Ff][Ll][Aa][Cc]) + VORBISTAG=$METAFLAC + ;; + *.[Oo][Gg][Gg]) + VORBISTAG=$VORBISCOMMENT + ;; + esac + # space seperated list of recomended stardard field names # see http://www.xiph.org/ogg/vorbis/doc/v-comment.html @@ -57,7 +66,7 @@ vorbis() break fi done - done) | $VORBISCOMMENT $2 + done) | $VORBISTAG $2 } id3() @@ -138,7 +147,7 @@ main() for file in $@; do case $file in *.[Ff][Ll][Aa][Cc]) - echo "FLAC tagging not supported." + vorbis $trackno "$file" ;; *.[Oo][Gg][Gg]) vorbis $trackno "$file"