Does the Amazon coverart plugin still work?

Does it still work at all though?

I’ve tried these three releases. None showed a cover art with only the Amazon plugin enabled:

D: 16:25:09,199 album._parse_release:183: Loading release '4147c0d3-7939-3484-bde6-b6fbefd7bc3b' ...
D: 16:25:09,201 collection.add_release_to_user_collections:166: Adding release '4147c0d3-7939-3484-bde6-b6fbefd7bc3b' to <Collection ASIN broken cover (d0eb30ff-31ed-493a-a4b6-72c4e90002c3)>
D: 16:25:09,202 coverart\__init__._retrieve_coverart:243: New CoverArt for <Album 4147c0d3-7939-3484-bde6-b6fbefd7bc3b ''>
D: 16:25:09,204 coverart\providers\__init__.cover_art_providers:86: CA Providers order: Cover Art Archive [ ] > CaaReleaseGroup [ ] > UrlRelationships [ ] > Local Files [ ] > Amazon [x]
D: 16:25:09,205 coverart\__init__.next_in_queue:154: Skipping cover art provider Cover Art Archive ...
D: 16:25:09,206 coverart\__init__.next_in_queue:154: Skipping cover art provider CaaReleaseGroup ...
D: 16:25:09,207 coverart\__init__.next_in_queue:154: Skipping cover art provider UrlRelationships ...
D: 16:25:09,209 coverart\__init__.next_in_queue:154: Skipping cover art provider Local Files ...
D: 16:25:09,211 coverart\__init__.next_in_queue:150: Trying cover art provider Amazon ...
D: 16:25:09,499 ui\mainwindow.set_statusbar_message:440: Album 4147c0d3-7939-3484-bde6-b6fbefd7bc3b loaded: The Who - Tommy
D: 16:24:47,397 album._parse_release:183: Loading release 'a44a4645-0e2b-3084-bf70-489ce93b7b94' ...
D: 16:24:47,399 collection.add_release_to_user_collections:166: Adding release 'a44a4645-0e2b-3084-bf70-489ce93b7b94' to <Collection ASIN broken cover (d0eb30ff-31ed-493a-a4b6-72c4e90002c3)>
D: 16:24:47,401 coverart\__init__._retrieve_coverart:243: New CoverArt for <Album a44a4645-0e2b-3084-bf70-489ce93b7b94 ''>
D: 16:24:47,403 coverart\providers\__init__.cover_art_providers:86: CA Providers order: Cover Art Archive [ ] > CaaReleaseGroup [ ] > UrlRelationships [ ] > Local Files [ ] > Amazon [x]
D: 16:24:47,405 coverart\__init__.next_in_queue:154: Skipping cover art provider Cover Art Archive ...
D: 16:24:47,406 coverart\__init__.next_in_queue:154: Skipping cover art provider CaaReleaseGroup ...
D: 16:24:47,408 coverart\__init__.next_in_queue:154: Skipping cover art provider UrlRelationships ...
D: 16:24:47,409 coverart\__init__.next_in_queue:154: Skipping cover art provider Local Files ...
D: 16:24:47,410 coverart\__init__.next_in_queue:150: Trying cover art provider Amazon ...
D: 16:24:47,479 ui\mainwindow.set_statusbar_message:440: Album a44a4645-0e2b-3084-bf70-489ce93b7b94 loaded: Torture Killer - Swarm!
D: 16:24:03,269 album._parse_release:183: Loading release 'd60ee76b-7bab-4022-a448-1473e0ddb862' ...
D: 16:24:03,271 coverart\__init__._retrieve_coverart:243: New CoverArt for <Album d60ee76b-7bab-4022-a448-1473e0ddb862 ''>
D: 16:24:03,272 coverart\providers\__init__.cover_art_providers:86: CA Providers order: Cover Art Archive [ ] > CaaReleaseGroup [ ] > UrlRelationships [ ] > Local Files [ ] > Amazon [x]
D: 16:24:03,273 coverart\__init__.next_in_queue:154: Skipping cover art provider Cover Art Archive ...
D: 16:24:03,274 coverart\__init__.next_in_queue:154: Skipping cover art provider CaaReleaseGroup ...
D: 16:24:03,274 coverart\__init__.next_in_queue:154: Skipping cover art provider UrlRelationships ...
D: 16:24:03,275 coverart\__init__.next_in_queue:154: Skipping cover art provider Local Files ...
D: 16:24:03,276 coverart\__init__.next_in_queue:150: Trying cover art provider Amazon ...
D: 16:24:03,343 ui\mainwindow.set_statusbar_message:440: Album d60ee76b-7bab-4022-a448-1473e0ddb862 loaded: David Bowie - The Rise and Fall of Ziggy Stardust and the Spiders From Mars

I don’t know :man_shrugging: The plugin always operated on guessing and trying certain URLs. I’m actually surprised it worked through all these years surprisingly well.

UPDATE: Actually works for me on all 3 examples and some more.

2 Likes

Found the culprit. I had disabled release relationships. This slightly surprised me since the ASIN tag doesn’t depend on it.

1 Like

I moved our conversation into a new topic, as we are getting more and more off-topic from the original thread.

That’s true, the plugin could be changed to get the ASIN anyway. Currently it depends on this, because it is using the URL relationship of type “amazon asin” on the release. I think the ASIN being returned as an attribute of the release entity did come later.

I wonder what happens if there are multiple Amazon links on a single release? Shouldn’t happen, but I have definitely seen these cases.

Just for other to see what we are talking about, the following web service request shows the ASIN both as an URL on the relationships, but also there is an asin attribute:

https://musicbrainz.org/ws/2/release/0a606073-cc75-3940-a52d-0823f0c4f06e?inc=url-rels&fmt=json

1 Like

Actually I found out why it is using the URL: The host matters, at least sometimes. Depending on the host the image path needs to be different. If an item is available on different Amazon domains it probably does not matter, but in some cases it does.

Still the plugin could be rewritten to still try different paths only based on ASIN if there is no URL relationship available.

1 Like

Attempt to improve this:

2 Likes