aboutsummaryrefslogtreecommitdiff
path: root/src/due/html.py
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-27 19:50:41 -0700
committerFuwn <[email protected]>2023-07-27 19:50:41 -0700
commitf36a152737eac8428fd21f369c8b67303bd22d09 (patch)
tree9d96b70d03d46120c8dc4479d199882e5e95fcd3 /src/due/html.py
parentfix(html): regex order for total episodes (diff)
downloadold.due.moe-f36a152737eac8428fd21f369c8b67303bd22d09.tar.xz
old.due.moe-f36a152737eac8428fd21f369c8b67303bd22d09.zip
fix(html): no progress entry media
Diffstat (limited to 'src/due/html.py')
-rw-r--r--src/due/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/due/html.py b/src/due/html.py
index e10bf0e..a43753b 100644
--- a/src/due/html.py
+++ b/src/due/html.py
@@ -49,11 +49,11 @@ def anime_to_html(releasing_outdated_anime):
id = anime["id"]
if id in ids:
- return
+ continue
else:
ids.append(id)
- progress = anime["mediaListEntry"]["progress"]
+ progress = (anime["mediaListEntry"] or {"progress": 0})["progress"]
available = (
{"episode": 0}
if media["media"]["nextAiringEpisode"] is None