[books] Clean up resume URLs
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
|||||||
@ -26,9 +26,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<p><a href="{{s.logdata.restart_url}}">Read again</a></p>
|
|
||||||
{% if object.readcomics_url %}
|
{% if object.readcomics_url %}
|
||||||
<p><a href="{{object.readcomics_url}}">Read next issue</a></p>
|
<p><a href="{{object.readcomics_url}}">Read again</a></p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if object.next_readcomics_url %}
|
{% if object.next_readcomics_url %}
|
||||||
<p><a href="{{object.next_readcomics_url}}">Read next issue</a></p>
|
<p><a href="{{object.next_readcomics_url}}">Read next issue</a></p>
|
||||||
|
|||||||
Reference in New Issue
Block a user