Add FLAC tagging to vorbis function.

This commit is contained in:
Svend Sorensen
2004-12-04 05:52:45 +00:00
parent 360729e0da
commit e9ce1ac1cf

View File

@@ -23,6 +23,15 @@ vorbis()
# -a to append to existing comments # -a to append to existing comments
VORBISCOMMENT="vorbiscomment -w -c -" 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 # space seperated list of recomended stardard field names
# see http://www.xiph.org/ogg/vorbis/doc/v-comment.html # see http://www.xiph.org/ogg/vorbis/doc/v-comment.html
@@ -57,7 +66,7 @@ vorbis()
break break
fi fi
done done
done) | $VORBISCOMMENT $2 done) | $VORBISTAG $2
} }
id3() id3()
@@ -138,7 +147,7 @@ main()
for file in $@; do for file in $@; do
case $file in case $file in
*.[Ff][Ll][Aa][Cc]) *.[Ff][Ll][Aa][Cc])
echo "FLAC tagging not supported." vorbis $trackno "$file"
;; ;;
*.[Oo][Gg][Gg]) *.[Oo][Gg][Gg])
vorbis $trackno "$file" vorbis $trackno "$file"