Fix bug in Jellyfin scrobbling
We need to have a default value when we pop off a dictionary, and we need to clear both mopidy and jellyfin status before we look a scrobble up. We may also want simplify status so we don't have mopidy and jellyfin cruft.
This commit is contained in:
@ -132,7 +132,8 @@ class Scrobble(TimeStampedModel):
|
||||
{"scrobble_data": scrobble_data},
|
||||
)
|
||||
# If creating a new scrobble, we don't need status
|
||||
scrobble_data.pop('mopidy_status')
|
||||
scrobble_data.pop('mopidy_status', None)
|
||||
scrobble_data.pop('jellyfin_status', None)
|
||||
return cls.create(scrobble_data)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user