aboutsummaryrefslogtreecommitdiff
path: root/src/due/html.py
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-27 19:37:24 -0700
committerFuwn <[email protected]>2023-07-27 19:37:24 -0700
commit238fa10ad3ca53af7b04459a8be1ae4e775cd649 (patch)
tree5a5e77b69b3a772bb03b60e2f507e593addde717 /src/due/html.py
parentfeat(html): show total episodes for anime (diff)
downloadold.due.moe-238fa10ad3ca53af7b04459a8be1ae4e775cd649.tar.xz
old.due.moe-238fa10ad3ca53af7b04459a8be1ae4e775cd649.zip
fix(html): regex order for total episodes
Diffstat (limited to 'src/due/html.py')
-rw-r--r--src/due/html.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/due/html.py b/src/due/html.py
index 6162422..e10bf0e 100644
--- a/src/due/html.py
+++ b/src/due/html.py
@@ -24,7 +24,9 @@ def seen(element, manga=False):
return 0
available_matches = re.findall(r"\d+\]|\[\d+", element)
- seen_matches = re.search(r"\s(\d+)/((\d+)|(\?))\s", element)
+ seen_matches = re.search(
+ r"\s(\d+)*?(<span style=\"opacity: 50%\">/(\d+)</span>)*\s", element
+ )
if seen_matches:
read = int(seen_matches.group(1))