Fix eyeD3 tagging for cddb entries without year
authorSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 05:20:08 +0000 (05:20 +0000)
committerSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 05:20:08 +0000 (05:20 +0000)
Thanks to vskytta for the patch. Closes issue 107

abcde
changelog

diff --git a/abcde b/abcde
index 0783213..84eb135 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -832,7 +832,7 @@ do_tag ()
                                        # eyeD3 --comment syntax is also different in < and >= 0.7.0
                                        run_command tagtrack-$OUTPUT-$1 nice $ENCNICE $TAGGER $TAGGEROPTS \
                                                --comment="$COMMENTOUTPUT" -A "$DALBUM" \
-                                               -a "$TRACKARTIST" -t "$TRACKNAME" -Y "$CDYEAR" \
+                                               -a "$TRACKARTIST" -t "$TRACKNAME" ${CDYEAR:+-Y "$CDYEAR"} \
                                                -G "$GENREID" -n "${TRACKNUM:-$1}" \
                                                ${TRACKNUM:+-N "$TRACKS"} \
                                                ${ENCODING:+--encoding="$ENCODING"} \
index cd0bf97..3f61069 100644 (file)
--- a/changelog
+++ b/changelog
@@ -22,6 +22,8 @@ abcde 2.5.5 UNRELEASED
     for the patch.
   * Fix option parsing for multiple output formats. Thanks to
     matthias.andree@gmx.de for the patch. Closes issue 115.
+  * Fix eyeD3 tagging for cddb entries without year. Thanks to vskytta for
+    the patch. Closes issue 107
 
  -- Steve McIntyre <93sam@debian.org>  Sat, 25 Oct 2014 12:11:16 -0700