Tweak the fix in musicbrainz for handling sketchy returned data some more
authorSteve McIntyre <steve@einval.com>
Thu, 12 Jan 2017 16:10:23 +0000 (16:10 +0000)
committerSteve McIntyre <steve@einval.com>
Thu, 12 Jan 2017 16:10:23 +0000 (16:10 +0000)
Hopefully closes Issue 30:
https://abcde.einval.com/bugzilla/show_bug.cgi?id=30

abcde-musicbrainz-tool
changelog

index b23c22a..1e69aae 100755 (executable)
@@ -95,9 +95,9 @@ if ($command =~ m/^id/) {
         if ($a_artist =~ /Various Artists/) {
             $va = 1;
         }
-       my @events = @{$release->release_event_list()->events()};
-        my $rel_year = "";
-        if ($release->release_event_list()->count() > 0) {
+       if ($release->release_event_list()->count() > 0) {
+           my @events = @{$release->release_event_list()->events()};
+           my $rel_year = "";
            $rel_year =  substr($events[0]->date(),0,4);
        }
 
index ec478c5..2bf1eac 100644 (file)
--- a/changelog
+++ b/changelog
@@ -23,6 +23,9 @@ abcde 2.8
     from a whole-CD flac file or using cdparanoia in one-track
     mode. Thanks to Matthias K├Ânig for the patch. Closes Issue 44:
     https://abcde.einval.com/bugzilla/show_bug.cgi?id=44
+  * Tweak the fix in musicbrainz for handling sketchy returned data
+    some more. Hopefully closes Issue 30:
+    https://abcde.einval.com/bugzilla/show_bug.cgi?id=30
 
 abcde 2.7.2