|
@@ -317,7 +317,10 @@ def manual_scrobble_book(
|
|
|
|
|
|
|
|
if action == "stop":
|
|
if action == "stop":
|
|
|
if url:
|
|
if url:
|
|
|
- scrobble.log["resume_url"] = next_url_if_exists(url)
|
|
|
|
|
|
|
+ if isinstance(scrobble.log, "BookLogData"):
|
|
|
|
|
+ scrobble.log.resume_url = next_url_if_exists(url)
|
|
|
|
|
+ else:
|
|
|
|
|
+ scrobble.log["resume_url"] = next_url_if_exists(url)
|
|
|
scrobble.save(update_fields=["log"])
|
|
scrobble.save(update_fields=["log"])
|
|
|
scrobble.stop(force_finish=True)
|
|
scrobble.stop(force_finish=True)
|
|
|
|
|
|