Merge pull request #4819 from lonebyte/fix-fanarttv-sorting

Fix fanarttv sorting
This commit is contained in:
Adrian Sampson 2023-06-16 20:17:27 -04:00 committed by GitHub
commit 79435c3b6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -590,7 +590,7 @@ class FanartTV(RemoteArtSource):
self._log.debug('fanart.tv: unexpected mb_releasegroupid in '
'response!')
matches.sort(key=lambda x: x['likes'], reverse=True)
matches.sort(key=lambda x: int(x['likes']), reverse=True)
for item in matches:
# fanart.tv has a strict size requirement for album art to be
# uploaded

View file

@ -185,6 +185,8 @@ Bug fixes:
* Fix updating "data_source" on re-imports and improve logging when flexible
attributes are being re-imported.
:bug:`4726`
* :doc:`/plugins/fetchart`: Correctly select the cover art from fanart.tv with
the highest number of likes
For packagers: