[books] Clean up resume URLs

This commit is contained in:
2025-10-28 14:41:16 -04:00
parent e62a07af37
commit 723d739405
2 changed files with 5 additions and 3 deletions

View File

@ -317,7 +317,10 @@ def manual_scrobble_book(
if action == "stop":
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.stop(force_finish=True)