diff options
| author | Fuwn <[email protected]> | 2023-07-25 15:36:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-07-25 15:36:32 -0700 |
| commit | efc7fd4f0c3ff4107e89db9285e471f4e3004f5c (patch) | |
| tree | bd37dbfcb55d90332b2121f06e3f53b69d7a1359 /src | |
| parent | fix(html): fix ruridragon edge cases (diff) | |
| download | old.due.moe-efc7fd4f0c3ff4107e89db9285e471f4e3004f5c.tar.xz old.due.moe-efc7fd4f0c3ff4107e89db9285e471f4e3004f5c.zip | |
fix(html): handle extra chapters (decimals)
Diffstat (limited to 'src')
| -rw-r--r-- | src/due/html.py | 16 |
1 files 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 |