projects
/
abcde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c402641
)
Cope with simple musicbrainz errors, e.g. disc not found
author
Steve McIntyre
<steve@einval.com>
Fri, 9 Mar 2018 15:02:07 +0000
(15:02 +0000)
committer
Steve McIntyre
<steve@einval.com>
Fri, 9 Mar 2018 15:02:07 +0000
(15:02 +0000)
abcde-musicbrainz-tool
patch
|
blob
|
history
diff --git
a/abcde-musicbrainz-tool
b/abcde-musicbrainz-tool
index
bf8d71a
..
0a5bf77
100755
(executable)
--- a/
abcde-musicbrainz-tool
+++ b/
abcde-musicbrainz-tool
@@
-89,6
+89,12
@@
if ($command =~ m/^id/) {
discid => $discid,
inc => ['artists', 'artist-credits', 'recordings']
});
+
+ if ($response->{'error'}) {
+ print STDERR "MusicBrainz lookup returned an error \"$response->{'error'}\"\n";
+ exit(0);
+ }
+
my @releases = @{ $response->{'releases'} };
my $releasenum = $start;
my @sums;