I developed Deezerart

I think the plugin is causing Picard to crash. Is there a way I can PM you a link to a test file or two?

The crash happens after the release is loaded into Picard, and I guess when the plugin is looking for artwork. The files have previously been tagged with Picard. The releases load without error when the plugin is disabled. The crashes happen on 2.9.2 and 2.10, and I’m using version 1.2 of the plugin.

Please give the release that is crashing for you, then we can take a look.

Also in case we can’t reproduce the issue with the release a crash log can help us identify the cause of the crash. See the documentation at General Troubleshooting — MusicBrainz Picard v2.10 documentation for how to get the log in case if crashes.

1 Like

Two releases that cause a crash are

Last few lines in the log are

D: 17:24:20,324 album._parse_release:210: Loading release '5fa7b518-064a-4069-a85d-d510fb729698' …
D: 17:24:20,325 coverart._retrieve_coverart:230: New CoverArt for <Album 5fa7b518-064a-4069-a85d-d510fb729698 ''>
D: 17:24:20,325 coverart.next_in_queue:143: Trying cover art provider Deezer …
W: 17:24:20,326 webservice.get:599: This method is deprecated, use WebService.get_url() instead
D: 17:24:20,326 webservice/ratecontrol._out_of_backoff:231: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -> 1000ms; slow start; window size 2.000 -> 3.000
D: 17:24:20,326 webservice/ratecontrol.get_delay_to_next_request:122: ('api.deezer.com', 443): First request
D: 17:24:20,326 webservice/ratecontrol.increment_requests:147: ('api.deezer.com', 443): Incrementing requests to: 1
D: 17:24:20,776 webservice/ratecontrol.decrement_requests:155: ('api.deezer.com', 443): Decrementing requests to: 0
D: 17:24:20,777 webservice._handle_reply:558: Received reply for https://api.deezer.com/search?q=artist:%22WORLD%20STANDARD%22%20album:%22WORLD%20STANDARD%22 -> HTTP 200 (OK) 
D: 17:24:20,777 coverart/providers/caa._has_suitable_artwork:256: There are suitable images in the Cover Art Archive for 5fa7b518-064a-4069-a85d-d510fb729698
D: 17:24:20,778 coverart.next_in_queue:143: Trying cover art provider Cover Art Archive …
Traceback (most recent call last):
  File "webservice/__init__.py", line 591, in _process_reply
  File "webservice/__init__.py", line 579, in _handle_reply
  File "/Users/[me]/Library/Preferences/MusicBrainz/Picard/plugins/deezerart.zip/deezerart/deezer/client.py", line 49, in handler
  File "/Users/[me]/Library/Preferences/MusicBrainz/Picard/plugins/deezerart.zip/deezerart/__init__.py", line 133, in _queue_from_search
AttributeError: 'Artist' object has no attribute 'title'
zsh: abort      "/Applications/MusicBrainz Picard.app/Contents/MacOS/picard-run" --debug

1 Like

Thanks a lot for the details. I’ll look into it and see that I can provide a fix for the plugin.

2 Likes

It started to cause Picard crash again, not sure if it’s just me.

1 Like

Really great plugin and very helpful!

But I’m having issues with the plugin causing a crash. This is the release that is currently causing an issue: Release “Another Gem” by Aly Bain & Phil Cunningham - MusicBrainz

Picard v2.12, Deezer plugin v1.2.1

Debug log follows:

D: 13:53:42,203 album._parse_release:210: Loading release '7f81bd8a-06e8-4288-9f26-5f04b3950595' …
D: 13:53:42,204 coverart._retrieve_coverart:230: New CoverArt for <Album 7f81bd8a-06e8-4288-9f26-5f04b3950595 ''>
D: 13:53:42,204 coverart.next_in_queue:146: Skipping cover art provider Local Files …
D: 13:53:42,204 coverart.next_in_queue:146: Skipping cover art provider Cover Art Archive …
D: 13:53:42,205 coverart.next_in_queue:146: Skipping cover art provider UrlRelationships …
D: 13:53:42,205 coverart.next_in_queue:146: Skipping cover art provider CaaReleaseGroup …
D: 13:53:42,205 coverart.next_in_queue:143: Trying cover art provider Deezer …
W: 13:53:42,205 webservice.get:601: This method is deprecated, use WebService.get_url() instead
D: 13:53:42,205 webservice/ratecontrol._out_of_backoff:231: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -> 1000ms; slow start; window size 2.000 -> 3.000
D: 13:53:42,205 webservice/ratecontrol.get_delay_to_next_request:122: ('api.deezer.com', 443): First request
D: 13:53:42,205 webservice/ratecontrol.increment_requests:147: ('api.deezer.com', 443): Incrementing requests to: 1
D: 13:53:42,340 webservice/ratecontrol.decrement_requests:155: ('api.deezer.com', 443): Decrementing requests to: 0
D: 13:53:42,340 webservice._handle_reply:559: Received reply for https://api.deezer.com/search?q=artist:%22Aly%20Bain%20%26%20Phil%20Cunningham%22%20album:%22Another%20Gem%22 -> HTTP 200 (OK)
W: 13:53:42,341 webservice.get:601: This method is deprecated, use WebService.get_url() instead
D: 13:53:42,342 webservice/ratecontrol._out_of_backoff:231: ('api.deezer.com', 443): oobackoff; delay: 1000ms -> 1000ms; slow start; window size 1.000 -> 2.000
D: 13:53:42,342 webservice/ratecontrol.get_delay_to_next_request:130: ('api.deezer.com', 443): Last request was 137 ms ago, waiting 863 ms before starting another one
D: 13:53:43,204 webservice/ratecontrol.get_delay_to_next_request:130: ('api.deezer.com', 443): Last request was 998 ms ago, waiting 2 ms before starting another one
D: 13:53:43,206 webservice/ratecontrol.get_delay_to_next_request:127: ('api.deezer.com', 443): Last request was 1000 ms ago, starting another one
D: 13:53:43,206 webservice/ratecontrol.increment_requests:147: ('api.deezer.com', 443): Incrementing requests to: 1
D: 13:53:43,287 webservice/ratecontrol.decrement_requests:155: ('api.deezer.com', 443): Decrementing requests to: 0
D: 13:53:43,287 webservice._handle_reply:559: Received reply for https://api.deezer.com/search?q=artist:%22Aly%20Bain%20%26%20Phil%20Cunningham%22%20track:%22The%20Lake%20Charles%20Waltz%22 -> HTTP 200 (OK)
D: 13:53:43,295 file.move:641: Moving <MP3File "01 My Lily _ The Sweetness of Mary _ Hughie Jim Paul's Reel.mp3"> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 275c9d98-478e-433d-96c9-fbf39c7c683a "My Lily / The Sweetness of Mary / Hughie Jim Paul's Reel">
D: 13:53:43,296 file.move:641: Moving <MP3File '03 Golden Memories.mp3'> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track df1af264-ecf8-4ce5-8a18-f3069286f214 'Golden Memories'>
D: 13:53:43,297 file.move:641: Moving <MP3File '04 The Reel de la Libération _ The Reel du Voyageur _ Reel Traditionelle de Quebec.mp3'> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 700714b2-0134-41e0-8d87-422fff172ff0 'The Reel de la Libération / The Reel du Voyageur / Reel Traditionelle de Quebec'>
D: 13:53:43,299 file.move:641: Moving <MP3File '02 The Lake Charles Waltz.mp3'> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 8bd4bde5-d839-4ee5-a5d2-e4c514aaa067 'The Lake Charles Waltz'>
D: 13:53:43,300 file.move:641: Moving <MP3File "09 Sophie's Lullaby.mp3"> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 9b64b42a-859c-4a61-95d4-68f0806c5595 "Sophie's Lullaby">
D: 13:53:43,301 file.move:641: Moving <MP3File '07 Tønder... The Eternal Friendship.mp3'> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track bc01e209-1de1-46f3-bae8-af6581475026 'Tønder... The Eternal Friendship'>
D: 13:53:43,302 file.move:641: Moving <MP3File "06 Charlie Hunter's Jig _ The Mouse in the Cupboard _ Rosewood.mp3"> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 29b5ed3c-1770-4cb6-bcd4-a7a2719ae8af "Charlie Hunter's Jig / The Mouse in the Cupboard / Rosewood">
D: 13:53:43,303 file.move:641: Moving <MP3File "08 Cathkin Braes _ The Féis Rois Reel _ Bob McQuillen's Reel _ Sophie's Dancing Feet.mp3"> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track 17291288-b447-422d-b9da-4ad79f2697df "Cathkin Braes / The Féis Rois Reel / Bob McQuillen's Reel / Sophie's Dancing Feet">
D: 13:53:43,304 file.move:641: Moving <MP3File "05 Cliff and Viv's Homecoming Waltz _ A Waltz for Aly.mp3"> from <Cluster 7f81bd8a-06e8-4288-9f26-5f04b3950595 'Another Gem/Unmatched Files'> to <Track f56832bb-9be6-42fa-9f7d-9e538235ad0d "Cliff and Viv's Homecoming Waltz / A Waltz for Aly">
D: 13:53:43,306 ui/mainwindow.set_statusbar_message:472: Album 7f81bd8a-06e8-4288-9f26-5f04b3950595 loaded: Aly Bain & Phil Cunningham - Another Gem

and a further example in case it’s helpful: https://musicbrainz.org/release/e33ff82b-b11d-45ef-b887-c405f842851d

D: 14:17:08,739 album._parse_release:210: Loading release 'e33ff82b-b11d-45ef-b887-c405f842851d' …
D: 14:17:08,740 coverart._retrieve_coverart:230: New CoverArt for <Album e33ff82b-b11d-45ef-b887-c405f842851d ''>
D: 14:17:08,740 coverart.next_in_queue:146: Skipping cover art provider Local Files …
D: 14:17:08,740 coverart.next_in_queue:146: Skipping cover art provider Cover Art Archive …
D: 14:17:08,740 coverart.next_in_queue:146: Skipping cover art provider UrlRelationships …
D: 14:17:08,740 coverart.next_in_queue:146: Skipping cover art provider CaaReleaseGroup …
D: 14:17:08,740 coverart.next_in_queue:143: Trying cover art provider Deezer …
W: 14:17:08,741 webservice.get:601: This method is deprecated, use WebService.get_url() instead
D: 14:17:08,741 webservice/ratecontrol._out_of_backoff:231: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -> 1000ms; slow start; window size 17.000 -> 18.000
D: 14:17:08,741 webservice/ratecontrol.get_delay_to_next_request:127: ('api.deezer.com', 443): Last request was 292484 ms ago, starting another one
D: 14:17:08,741 webservice/ratecontrol.increment_requests:147: ('api.deezer.com', 443): Incrementing requests to: 1
D: 14:17:08,895 webservice/ratecontrol.decrement_requests:155: ('api.deezer.com', 443): Decrementing requests to: 0
D: 14:17:08,895 webservice._handle_reply:559: Received reply for https://api.deezer.com/search?q=artist:%22B.B.%20King%22%20album:%22Blues%20Summit%22 -> HTTP 200 (OK)
D: 14:17:08,905 file.move:641: Moving <MP3File '02 B.B. King feat. Katie Webster - Since I Met You Baby.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track e3e1172f-5287-4790-9732-296ccc2f00b5 'Since I Met You Baby'>
D: 14:17:08,906 file.move:641: Moving <MP3File '05 B.B. King feat. Koko Taylor - Something You Got.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 7f78a55a-d053-4955-8023-95577139d93b 'Something You Got'>
D: 14:17:08,907 file.move:641: Moving <MP3File "06 B.B. King feat. Etta James - There's Something on Your Mind.mp3"> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 1d911ac3-1c88-46b9-94af-aabaef80c16e "There's Something on Your Mind">
D: 14:17:08,908 file.move:641: Moving <MP3File "01 B.B. King feat. Robert Cray - Playin' With My Friends.mp3"> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 52a25ce6-6ccd-4095-baa0-0fad1d48d5b3 "Playin' With My Friends">
D: 14:17:08,909 file.move:641: Moving <MP3File '11 B.B. King - I Gotta Move Out of This Neighborhood_Nobody Loves Me but My Mother.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 1a3a4042-8796-43ae-86fe-59ca9e618dd6 'I Gotta Move Out of This Neighborhood/Nobody Loves Me but My Mother'>
D: 14:17:08,910 file.move:641: Moving <MP3File '03 B.B. King feat. Buddy Guy - I Pity the Fool.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 5618eec8-ff87-4aea-9c9b-35c0831d5d34 'I Pity the Fool'>
D: 14:17:08,911 file.move:641: Moving <MP3File "09 B.B. King feat. Ruth Brown - You're the Boss.mp3"> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 54dbf249-97db-42ee-88d1-1f45aa94d760 "You're the Boss">
D: 14:17:08,912 file.move:641: Moving <MP3File '04 B.B. King feat. John Lee Hooker - You Shook Me.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track d39234bc-3ff1-4d7b-872a-2c9eb7a77843 'You Shook Me'>
D: 14:17:08,913 file.move:641: Moving <MP3File '07 B.B. King feat. Lowell Fulson - Little by Little.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track 46fa6d7a-dc83-425a-9a3a-46f06981ace2 'Little by Little'>
D: 14:17:08,914 file.move:641: Moving <MP3File '08 B.B. King feat. Albert Collins - Call It Stormy Monday.mp3'> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track ae8462d0-2544-45cd-8756-94437994c562 'Call It Stormy Monday'>
D: 14:17:08,915 file.move:641: Moving <MP3File "10 B.B. King feat. Irma Thomas - We're Gonna Make It.mp3"> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track eb54e8fa-85af-4837-8de3-d5be8c75e1b6 "We're Gonna Make It">
D: 14:17:08,916 file.move:641: Moving <MP3File "12 B.B. King feat. Joe Louis Walker - Everybody's Had the Blues.mp3"> from <Cluster e33ff82b-b11d-45ef-b887-c405f842851d 'Blues Summit/Unmatched Files'> to <Track edb5f263-f60a-4181-9de5-645f2b6043aa "Everybody's Had the Blues">
D: 14:17:08,919 ui/mainwindow.set_statusbar_message:472: Album e33ff82b-b11d-45ef-b887-c405f842851d loaded: B.B. King - Blues Summit

@BrowneR Thanks for the report. The crash happens when the artist name similarity is below the configured threshold. I have just merged a fix with deezerart 1.2.2. The plugin should show up as an update in a couple of hours.

3 Likes

Thanks very much for the update, that seems to have done the trick!

One other thing I noticed is that I get a very low similarity score for the following album and it only seems to match with similarity threshold set to around 10%. I’m not sure but maybe this is a Deezer API problem and not something you can fix.

The plugin seems to send a sensible search string to the Deezer API, but the API only returns one of the two artists in the album search results rather than both.

D: 12:35:28,011 album._parse_release:210: Loading release '539345b6-7beb-49ca-b7e1-911937ed871e' …
D: 12:35:28,012 coverart._retrieve_coverart:230: New CoverArt for <Album 539345b6-7beb-49ca-b7e1-911937ed871e ''>
D: 12:35:28,012 coverart.next_in_queue:146: Skipping cover art provider Local Files …
D: 12:35:28,012 coverart.next_in_queue:146: Skipping cover art provider Cover Art Archive …
D: 12:35:28,012 coverart.next_in_queue:146: Skipping cover art provider UrlRelationships …
D: 12:35:28,013 coverart.next_in_queue:146: Skipping cover art provider CaaReleaseGroup …
D: 12:35:28,013 coverart.next_in_queue:143: Trying cover art provider Deezer …
W: 12:35:28,013 webservice.get:601: This method is deprecated, use WebService.get_url() instead
D: 12:35:28,013 webservice/ratecontrol._out_of_backoff:231: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -> 1000ms; slow start; window size 4.000 -> 5.000
D: 12:35:28,013 webservice/ratecontrol.get_delay_to_next_request:127: ('api.deezer.com', 443): Last request was 39950 ms ago, starting another one
D: 12:35:28,013 webservice/ratecontrol.increment_requests:147: ('api.deezer.com', 443): Incrementing requests to: 1
D: 12:35:28,101 webservice/ratecontrol.decrement_requests:155: ('api.deezer.com', 443): Decrementing requests to: 0
D: 12:35:28,101 webservice._handle_reply:559: Received reply for https://api.deezer.com/search?q=artist:%22Aly%20Bain%20%26%20Phil%20Cunningham%22%20album:%22Five%20and%20Twenty%22 -> HTTP 200 (OK)
D: 12:35:28,102 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,103 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,103 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,103 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,104 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,104 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,104 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,104 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,105 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
D: 12:35:28,105 C:\/Users/Chris/AppData/Local/MusicBrainz/Picard/plugins/deezerart.zip/deezerart.log_debug:91: Deezerart: artist similarity below threshold: 'Aly Bain & Phil Cunningham' ~ 'Aly Bain'
E: 12:35:28,105 ui/item.error_append:108: <Album 539345b6-7beb-49ca-b7e1-911937ed871e ''>: Deezerart: no result matched the criteria

Hello :slight_smile:
I get this error message when trying to use the plugin:

W: 19:54:12,511 webservice.get:599: This method is deprecated, use WebService.get_url() instead

E: 19:54:12,583 ui/item.error_append:108: <Album ec85768f-feb8-4e79-92aa-947c36c3f7b3 ‘’>: Deezerart: could not fetch search results: An active access token must be used to query information about the current user

Where should I input the access token? I shouldn’t need one right?
I’m on Picard 2.11 (Flatpak on debian machine) and use plugin version 1.2.2

The issue has been fixed in Picard 2.12. The Flatpak is currently still at 2.11 because of some build issues with the metadata, but this should be resolved once we release 2.12.1

3 Likes