mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Fix the sorting of fanart.tv covers
fanart.tv uses a string to output the number of likes (see https://fanart.tv/api-docs/api-v3/). In order to sort numerically we need to convert the string into an int.
This commit is contained in:
parent
0c3f428a60
commit
2c3aca23e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue