mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Temporary fix for scrobbling with no album info
This commit is contained in:
parent
f9ce0e6ba9
commit
451014f6e7
@ -151,7 +151,7 @@ def rawscrobble_to_scrobbledict(rawscrobble, fix=True, client=None):
|
||||
|
||||
# if we send [] as albumartists, it means various
|
||||
# if we send nothing, the scrobbler just doesnt support it and we assume track artists
|
||||
if 'album_artists' not in scrobbleinfo:
|
||||
if ('album_title' in scrobbleinfo) and ('album_artists' not in scrobbleinfo):
|
||||
scrobbleinfo['album_artists'] = scrobbleinfo.get('track_artists')
|
||||
|
||||
# New plan, do this further down
|
||||
@ -181,6 +181,9 @@ def rawscrobble_to_scrobbledict(rawscrobble, fix=True, client=None):
|
||||
"rawscrobble":rawscrobble
|
||||
}
|
||||
|
||||
if scrobbledict["track"]["album"]["albumtitle"] is None and scrobbledict["track"]["album"]["artists"] is None:
|
||||
del scrobbledict["track"]["album"]
|
||||
|
||||
return scrobbledict
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user