From 30b005fa469b09639367c47e03954545db1be636 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 14 Oct 2025 11:51:33 -0400 Subject: [PATCH] [scrobbles] Stop any scrobble when stop is called --- vrobbler/apps/scrobbles/scrobblers.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index a03d464..9f03d93 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -868,8 +868,13 @@ def manual_scrobble_webpage( ) scrobble = Scrobble.create_or_update(webpage, user_id, scrobble_dict) - # possibly async this? - scrobble.push_to_archivebox() + + if action == "stop": + scrobble.stop(force_finish=True) + else: + # possibly async this? + scrobble.push_to_archivebox() + return scrobble