From 3849b3fa927eae53a91325fc272731fc181c3575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 15 Jan 2025 14:52:18 +0100 Subject: [PATCH] [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 --- gallery_dl/extractor/batoto.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gallery_dl/extractor/batoto.py b/gallery_dl/extractor/batoto.py index 77c40efda2..4d192a49b7 100644 --- a/gallery_dl/extractor/batoto.py +++ b/gallery_dl/extractor/batoto.py @@ -67,6 +67,7 @@ def request(self, url, **kwargs): 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"