From 723d73940541393e5626bbc359f0622dbf29809d Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Tue, 28 Oct 2025 14:41:16 -0400 Subject: [PATCH] [books] Clean up resume URLs --- vrobbler/apps/scrobbles/scrobblers.py | 5 ++++- vrobbler/templates/books/book_detail.html | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/vrobbler/apps/scrobbles/scrobblers.py b/vrobbler/apps/scrobbles/scrobblers.py index 26ff58a..859941f 100644 --- a/vrobbler/apps/scrobbles/scrobblers.py +++ b/vrobbler/apps/scrobbles/scrobblers.py @@ -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) diff --git a/vrobbler/templates/books/book_detail.html b/vrobbler/templates/books/book_detail.html index d78d66f..37a8531 100644 --- a/vrobbler/templates/books/book_detail.html +++ b/vrobbler/templates/books/book_detail.html @@ -26,9 +26,8 @@
-

Read again

{% if object.readcomics_url %} -

Read next issue

+

Read again

{% endif %} {% if object.next_readcomics_url %}

Read next issue