Skip to content

Commit

Permalink
deezerart: fixed crash if artist similarity is below threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
phw committed Jul 12, 2024
1 parent 1577261 commit 1fd3cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/deezerart/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PLUGIN_NAME = "Deezer cover art"
PLUGIN_AUTHOR = "Fabio Forni <livingsilver94>"
PLUGIN_DESCRIPTION = "Fetch cover arts from Deezer"
PLUGIN_VERSION = '1.2.1'
PLUGIN_VERSION = '1.2.2'
PLUGIN_API_VERSIONS = ['2.5']
PLUGIN_LICENSE = "GPL-3.0-or-later"
PLUGIN_LICENSE_URL = "https://www.gnu.org/licenses/gpl-3.0.html"
Expand Down Expand Up @@ -130,7 +130,7 @@ def _queue_from_search(self, results: List[obj.APIObject], error: Optional[QtNet
if not isinstance(result, obj.Track):
continue
if not is_similar(artist, result.artist.name, min_similarity):
self.log_debug('artist similarity below threshold: %r ~ %r', artist, result.artist.title)
self.log_debug('artist similarity below threshold: %r ~ %r', artist, result.artist.name)
continue
if not is_similar(album, result.album.title, min_similarity):
self.log_debug('album similarity below threshold: %r ~ %r', album, result.album.title)
Expand Down

0 comments on commit 1fd3cfe

Please sign in to comment.