We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d275bab commit bcba9d7Copy full SHA for bcba9d7
1 file changed
comiclib/scanner/21-hath.py
@@ -10,7 +10,7 @@ class Scanner:
10
def scan(self, path: Path, id: str, metadata: dict, prev_scanners: list[str]) -> bool:
11
if path.is_dir() and (path / 'galleryinfo.txt').exists():
12
logger.info(f' <- {path}')
13
- if (match := re.search(r"\[(\d+)\]$", path.name, re.ASCII)) is not None:
+ if (match := re.search(r"\[(\d+)(?:-\d+x)?\]$", path.name, re.ASCII)) is not None:
14
metadata["source"] = 'https://exhentai.org/g/' + match[1] + '/'
15
elif re.fullmatch(r"\d+", path.name, re.ASCII) is not None:
16
metadata["source"] = 'https://exhentai.org/g/' + path.name + '/'
0 commit comments