Skip to content

Commit

Permalink
[batoto] use 'chapter_id' in default archive IDs (#6835)
Browse files Browse the repository at this point in the history
instead of '{chapter}{chapter_minor}' since some chapters have no actual
chapter number and end up as '0', potentially causing ID overlap
  • Loading branch information
mikf committed Jan 15, 2025
1 parent 6e919a3 commit 3849b3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gallery_dl/extractor/batoto.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 3849b3f

Please sign in to comment.