|
@@ -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
|
|
|
|
|
|
|