[books] Add bookmark_url to logdata

This commit is contained in:
2025-10-22 01:00:25 -04:00
parent e1d4a7c5a4
commit b233b60ae0
3 changed files with 11 additions and 0 deletions

View File

@ -260,8 +260,10 @@ def manual_scrobble_book(
log = {}
source = "Vrobbler"
page = None
url = None
if READCOMICSONLINE_URL in title:
url = title
title, volume, page = parse_readcomicsonline_uri(title)
if not title:
logger.info(
@ -309,6 +311,9 @@ def manual_scrobble_book(
scrobble = Scrobble.create_or_update(book, user_id, scrobble_dict, read_log_page=page)
if action == "stop":
if url:
scrobble.log["bookmark_url"] = url
scrobble.save(update_fields=["log"])
scrobble.stop(force_finish=True)
return scrobble