[batoto] use 'chapter_id' in default archive IDs (#6835)

instead of '{chapter}{chapter_minor}' since some chapters have no actual
chapter number and end up as '0', potentially causing ID overlap
This commit is contained in:
Mike Fährmann
2025-01-15 14:52:18 +01:00
parent 6e919a3695
commit 3849b3fa92

View File

@@ -67,6 +67,7 @@ class BatotoBase():
class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
"""Extractor for batoto manga chapters"""
archive_fmt = "{chapter_id}_{page}"
pattern = BASE_PATTERN + r"/(?:title/[^/?#]+|chapter)/(\d+)"
example = "https://xbato.org/title/12345-MANGA/54321"