소스 검색

[scrobblers] Allow stopping reading comics

Colin Powell 4 주 전
부모
커밋
d77caa2783
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      vrobbler/apps/scrobbles/scrobblers.py

+ 7 - 1
vrobbler/apps/scrobbles/scrobblers.py

@@ -295,7 +295,13 @@ def manual_scrobble_book(
         },
     )
 
-    return Scrobble.create_or_update(book, user_id, scrobble_dict, read_log_page=page)
+
+    scrobble = Scrobble.create_or_update(book, user_id, scrobble_dict, read_log_page=page)
+
+    if action == "stop":
+        scrobble.stop(force_finish=True)
+
+    return scrobble
 
 
 def manual_scrobble_board_game(