[batoto] update

This commit is contained in:
enduser420
2024-08-12 15:52:18 +05:30
parent bc43c35847
commit aa9e24ce0d

View File

@@ -54,7 +54,7 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
match = re.match( match = re.match(
r"(?:Volume\s+(\d+) )?" r"(?:Volume\s+(\d+) )?"
r"[Cc]hapter\s*(\d+)(\.\d+)?", info) r"[Cc]hapter\s*(\d+)([\w.]*)", info)
if match: if match:
volume, chapter, minor = match.groups() volume, chapter, minor = match.groups()
title = text.remove_html(extr( title = text.remove_html(extr(
@@ -65,14 +65,15 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
title = info title = info
return { return {
"manga" : text.unescape(manga), "manga" : text.unescape(manga),
"manga_id" : text.parse_int(manga_id), "manga_id" : text.parse_int(manga_id),
"title" : text.unescape(title), "title" : text.unescape(title),
"volume" : text.parse_int(volume), "volume" : text.parse_int(volume),
"chapter" : text.parse_int(chapter), "chapter" : text.parse_int(chapter),
"chapter_minor": minor or "", "chapter_minor" : minor,
"chapter_id" : text.parse_int(self.chapter_id), "chapter_string": text.unquote(info),
"date" : text.parse_timestamp(extr(' time="', '"')[:-3]), "chapter_id" : text.parse_int(self.chapter_id),
"date" : text.parse_timestamp(extr(' time="', '"')[:-3]),
} }
def images(self, page): def images(self, page):