From 7ceb0199f2b9a4cd7fa5925c8d595c9cacf940b0 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 8 Aug 2023 02:36:11 -0700 Subject: fix(html): manga sort --- src/due/html/utilities.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/due/html/utilities.py b/src/due/html/utilities.py index 367b434..5cd518e 100644 --- a/src/due/html/utilities.py +++ b/src/due/html/utilities.py @@ -6,15 +6,14 @@ def seen(element, manga=False): read = 0 if manga: - available_matches = re.search(r"\[(\d+)<\/a>\]", element) - read_matches = re.search(r"\[(?=\d+)<\/a>\]", element) + available_matches = re.search(r"\[(\d+)\]|\[(\d+)\]", element) + read_matches = re.search(r" (\d+)