Make id3 happy when 'Genre' field is empty
authorAndrew Strong <andrew.david.strong@gmail.com>
Tue, 8 Sep 2015 08:04:24 +0000 (18:04 +1000)
committerAndrew Strong <andrew.david.strong@gmail.com>
Tue, 8 Sep 2015 08:04:24 +0000 (18:04 +1000)
Thanks to Martin Husemann for this fix which closes Issue 8:

  http://abcde.einval.com/bugzilla/show_bug.cgi?id=8

abcde
changelog

diff --git a/abcde b/abcde
index d2030c1..991df79 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -781,7 +781,7 @@ local id=""
                "jpop")                  id=146 ;;
                "synthpop")              id=147 ;;
                "rock/pop"|"rock / pop") id=148 ;;
-               *)                       return 1 ;;
+               *)                       id=255 ;;
        esac
 echo ${id}
 return 0
index 39ec460..c9db95e 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,5 +1,8 @@
 abcde 2.7.1
 
+  * Make id3 happy when 'Genre' field is empty. Thanks to Martin
+    Husemann for the fix which closes Issue 8:
+    http://abcde.einval.com/bugzilla/show_bug.cgi?id=8
   * Add YEAR and GENRE variables to do_getalbumart(). Thanks to
     Johannes Gernemann for this patch which closes issue 9:
     http://abcde.einval.com/bugzilla/show_bug.cgi?id=9