GNOME Bugzilla – Bug 410684
[artdisplay] support getting cover art from musicbrainz
Last modified: 2009-08-29 10:32:03 UTC
If a track has musicbrainz information (either in a file or rhythmdb) it should pull cover art from amazon-via-musicbrainz since it is more reliable than the bare-bones amazon search. Depends on bug #410681.
Created attachment 83889 [details] [review] New MusicBrainzCoverArtSearch class This is a first-cut approach that requires the installation of the python-musicbrainz2 package to lookup the ASIN based on the MusicBrainz albumid. It requires the patch on bug #410681. Another possibility is to get the ASIN when doing the original MusicBrainz lookup on the CD, but there is no simple GST_TAG_ location to store it.
Created attachment 83894 [details] [review] Improve error checking
Created attachment 94308 [details] [review] updated, simplified a bit I think a bit more work needs to go in to this. It's synchronous (although it seems pretty quick), and it could probably interact with the existing amazon search in some fashion to avoid duplicating work, since they're kind of searching the same result space.
This could probably be reworked to use a thread for the musicbrainz query fairly easily. Not sure what to do about the interaction between this and the regular search; maybe the regular search should just do nothing if the entry it's searching for has a musicbrainz album ID?
I rewrote this to use the rb Loader thing (so it's asynchronous) and parse the xml itself (no python-musicbrainz dependency) and committed it.