aboutsummaryrefslogtreecommitdiff
path: root/src/due/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/due/html.py')
-rw-r--r--src/due/html.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/due/html.py b/src/due/html.py
index 966dadb..f629afc 100644
--- a/src/due/html.py
+++ b/src/due/html.py
@@ -42,6 +42,11 @@ def anime_to_html(releasing_outdated_anime):
if title is None:
title = anime["title"]["romaji"]
+ if request.cookies.get("show_missing") is not None and str(available)[0] == "?":
+ ids.pop()
+
+ continue
+
current_html.append(
f'<li><a href="https://anilist.co/anime/{id}" target="_blank">{title}</a> {progress} [{available}]</li>'
)
@@ -54,7 +59,7 @@ def anime_to_html(releasing_outdated_anime):
return ("".join(current_html), len(ids))
-def manga_to_html(releasing_outdated_manga):
+def manga_to_html(releasing_outdated_manga, show_missing):
current_html = []
ids = []
@@ -145,6 +150,11 @@ def manga_to_html(releasing_outdated_manga):
)
)
+ if show_missing is not None and str(available)[0] == "?":
+ ids.pop()
+
+ return
+
# Useful when debugging
# if str(available)[0] != "?":
# ids.pop()