Skip to content

Commit bcba9d7

Browse files
authored
[hath] match resampled archives
1 parent d275bab commit bcba9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comiclib/scanner/21-hath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Scanner:
1010
def scan(self, path: Path, id: str, metadata: dict, prev_scanners: list[str]) -> bool:
1111
if path.is_dir() and (path / 'galleryinfo.txt').exists():
1212
logger.info(f' <- {path}')
13-
if (match := re.search(r"\[(\d+)\]$", path.name, re.ASCII)) is not None:
13+
if (match := re.search(r"\[(\d+)(?:-\d+x)?\]$", path.name, re.ASCII)) is not None:
1414
metadata["source"] = 'https://exhentai.org/g/' + match[1] + '/'
1515
elif re.fullmatch(r"\d+", path.name, re.ASCII) is not None:
1616
metadata["source"] = 'https://exhentai.org/g/' + path.name + '/'

0 commit comments

Comments
 (0)