From efc7fd4f0c3ff4107e89db9285e471f4e3004f5c Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 25 Jul 2023 15:36:32 -0700 Subject: fix(html): handle extra chapters (decimals) --- src/due/html.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/due/html.py b/src/due/html.py index 519adfe..b2861ce 100644 --- a/src/due/html.py +++ b/src/due/html.py @@ -119,13 +119,8 @@ def manga_to_html(releasing_outdated_manga): ) ) - if str(progress) == str(available): - titles.pop() - - return - # Useful when debugging - # if str(available)[0].isdigit(): + # if str(available)[0] == "?": # titles.pop() # return @@ -135,6 +130,15 @@ def manga_to_html(releasing_outdated_manga): return + if str(available)[0].isdigit(): + print(title, available) + available = math.floor(float(available)) + + if str(progress) == str(available): + titles.pop() + + return + available_link = ( available if mangadex_id is None -- cgit v1.2.3