From f168608cee0b93c9fa153684ce1100045726ade4 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 22 Apr 2024 14:19:32 -0400 Subject: [PATCH] [scrobbles] Fix scrobbling apocalypse --- vrobbler/apps/scrobbles/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vrobbler/apps/scrobbles/models.py b/vrobbler/apps/scrobbles/models.py index 945d6b7..1818563 100644 --- a/vrobbler/apps/scrobbles/models.py +++ b/vrobbler/apps/scrobbles/models.py @@ -889,8 +889,8 @@ class Scrobble(TimeStampedModel): }, ) - scrobble_data["playback_status"] = scrobble_data.get( - "mopidy_status", scrobble_data.get("jellyfin_status", None) + scrobble_data["playback_status"] = scrobble_data.pop( + "mopidy_status", scrobble_data.pop("jellyfin_status", None) ) # If it's marked as stopped, send it through our update mechanism, which will complete it if scrobble and ( @@ -900,6 +900,7 @@ class Scrobble(TimeStampedModel): return scrobble.update(scrobble_data) # Discard status before creating + scrobble_data.pop("playback_status") logger.info( f"[scrobbling] creating new scrobble", extra={