Bug 65 - MusicBrainz lookup fails when album has no release events
Summary: MusicBrainz lookup fails when album has no release events
Status: RESOLVED DUPLICATE of bug 57
Alias: None
Product: abcde
Classification: Unclassified
Component: CD lookup (show other bugs)
Version: unspecified
Hardware: All All
: Normal normal
Assignee: Steve McIntyre
URL:
Depends on:
Blocks:
 
Reported: 2017-07-06 00:17 BST by Luca
Modified: 2018-02-21 22:12 GMT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca 2017-07-06 00:17:05 BST
Hello,

When looking up albums on MB that have no release events, the musicbrainz-tool fetches nothing and errs out with:

Can't call method "count" on an undefined value at /usr/bin/abcde-musicbrainz-tool line 99.


And indeed, changing line 99 to 


if ($release->release_event_list() and $release->release_event_list()->count() > 0)

solves the problem.

Cheers
Comment 1 Steve McIntyre 2018-02-21 22:12:44 GMT
Hi,

I think this is fixed in git now...

*** This bug has been marked as a duplicate of bug 57 ***