Compare commits

...

2 Commits

Author SHA1 Message Date
krateng 50306990fb Merge branch 'feature-albums' into next_minor_version 2023-05-20 21:28:39 +02:00
krateng 99c295b0e4 Fixed handling of empty album name 2023-05-20 21:28:05 +02:00
1 changed files with 2 additions and 1 deletions

View File

@ -160,6 +160,7 @@ def rawscrobble_to_scrobbledict(rawscrobble, fix=True, client=None):
# New plan, do this further down
# NONE always means there is simply no info, so make a guess or whatever the options say
# could use the track artists, but probably check if any album with the same name exists first
# various artists always needs to be specified via []
# TODO
@ -185,7 +186,7 @@ def rawscrobble_to_scrobbledict(rawscrobble, fix=True, client=None):
"rawscrobble":rawscrobble
}
if scrobbledict["track"]["album"]["albumtitle"] is None:
if not scrobbledict["track"]["album"]["albumtitle"]:
del scrobbledict["track"]["album"]
return scrobbledict