diff options
| author | Fuwn <[email protected]> | 2023-07-27 19:37:24 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-07-27 19:37:24 -0700 |
| commit | 238fa10ad3ca53af7b04459a8be1ae4e775cd649 (patch) | |
| tree | 5a5e77b69b3a772bb03b60e2f507e593addde717 /src | |
| parent | feat(html): show total episodes for anime (diff) | |
| download | old.due.moe-238fa10ad3ca53af7b04459a8be1ae4e775cd649.tar.xz old.due.moe-238fa10ad3ca53af7b04459a8be1ae4e775cd649.zip | |
fix(html): regex order for total episodes
Diffstat (limited to 'src')
| -rw-r--r-- | src/due/html.py | 4 |
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)) |