From aa9e24ce0d6e28d581233106a1ade18a785d64e5 Mon Sep 17 00:00:00 2001 From: enduser420 <91022934+enduser420@users.noreply.github.com> Date: Mon, 12 Aug 2024 15:52:18 +0530 Subject: [PATCH] [batoto] update --- gallery_dl/extractor/batoto.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/gallery_dl/extractor/batoto.py b/gallery_dl/extractor/batoto.py index 1acc0984..c26b182a 100644 --- a/gallery_dl/extractor/batoto.py +++ b/gallery_dl/extractor/batoto.py @@ -54,7 +54,7 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor): match = re.match( r"(?:Volume\s+(\d+) )?" - r"[Cc]hapter\s*(\d+)(\.\d+)?", info) + r"[Cc]hapter\s*(\d+)([\w.]*)", info) if match: volume, chapter, minor = match.groups() title = text.remove_html(extr( @@ -65,14 +65,15 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor): title = info return { - "manga" : text.unescape(manga), - "manga_id" : text.parse_int(manga_id), - "title" : text.unescape(title), - "volume" : text.parse_int(volume), - "chapter" : text.parse_int(chapter), - "chapter_minor": minor or "", - "chapter_id" : text.parse_int(self.chapter_id), - "date" : text.parse_timestamp(extr(' time="', '"')[:-3]), + "manga" : text.unescape(manga), + "manga_id" : text.parse_int(manga_id), + "title" : text.unescape(title), + "volume" : text.parse_int(volume), + "chapter" : text.parse_int(chapter), + "chapter_minor" : minor, + "chapter_string": text.unquote(info), + "chapter_id" : text.parse_int(self.chapter_id), + "date" : text.parse_timestamp(extr(' time="', '"')[:-3]), } def images(self, page):