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 @@