#!/bin/bash
# Copyright (c) 1998-2001 Robert Woodcock <rcw@debian.org>
# Copyright (c) 2003-2006 Jesus Climent <jesus.climent@hispalinux.es>
+# Copyright (c) 2009-2012 Colin Tuckley <colint@debian.org>
+# Copyright (c) 2012 Steve McIntyre <93sam@@debian.org>
# This code is hereby licensed for public consumption under either the
# GNU GPL v2 or greater, or Larry Wall's Artistic license - your choice.
#
#
# $Id$
-VERSION='2.5.3'
+VERSION='2.5.5-UNRELEASED'
usage ()
{
--comment=::"$COMMENTOUTPUT" -A "$DALBUM" \
-a "$TRACKARTIST" -t "$TRACKNAME" -Y "$CDYEAR" \
-G "$GENREID" -n "${TRACKNUM:-$1}" \
- "${TRACKNUM:+-N $TRACKS}" \
- "${ENCODING:+--set-encoding=$ENCODING}" \
- "${TPE2:+--set-user-text-frame=TPE2:$TPE2}" \
+ ${TRACKNUM:+-N "$TRACKS"} \
+ ${ENCODING:+--set-encoding="$ENCODING"} \
+ ${TPE2:+--set-text-frame=TPE2:"$TPE2"} \
"$ABCDETEMPDIR/track$1.$OUTPUT"
;;
# FIXME # Still not activated...
TAGGER="$ID3"
TAGGEROPTS="$ID3OPTS"
else
- TAGGER="$ID3V2"
+ TAGGER="$EYED3"
TAGGEROPTS="$ID3V2OPTS"
+ ID3SYNTAX=eyed3
+ TAGGEROPTS="--set-encoding=utf16-LE $ID3V2OPTS"
fi
# NOGAP is specific to lame. Other encoders fail ...
esac
fi
CHOICE=$(checkstatus cddb-choice)
- if [ $CHOICE = 0 ] ; then
+ if [ "$CHOICE" = 0 ] ; then
# We don't have any information at all; try to fall back
# to CD-Text for basic information
vecho "No CDDB information found, trying cdtext from the CD"