mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04: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 [] as albumartists, it means various
|
||||||
# if we send nothing, the scrobbler just doesnt support it and we assume track artists
|
# 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')
|
scrobbleinfo['album_artists'] = scrobbleinfo.get('track_artists')
|
||||||
|
|
||||||
# New plan, do this further down
|
# New plan, do this further down
|
||||||
@ -181,6 +181,9 @@ def rawscrobble_to_scrobbledict(rawscrobble, fix=True, client=None):
|
|||||||
"rawscrobble":rawscrobble
|
"rawscrobble":rawscrobble
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if scrobbledict["track"]["album"]["albumtitle"] is None and scrobbledict["track"]["album"]["artists"] is None:
|
||||||
|
del scrobbledict["track"]["album"]
|
||||||
|
|
||||||
return scrobbledict
|
return scrobbledict
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user