diff --git a/gallery_dl/extractor/bato.py b/gallery_dl/extractor/bato.py index 082c5e0a..d29a58bf 100644 --- a/gallery_dl/extractor/bato.py +++ b/gallery_dl/extractor/bato.py @@ -97,32 +97,33 @@ class BatoMangaExtractor(BatoBase, MangaExtractor): results = [] for chapter_num in range(num_chapters): - chapter = text.extr( + chapter_info = text.extr( page, '
" ) - chapter += r"" # so we can match the date - url, pos = text.extract(chapter, '" # so we can match the date + url, pos = text.extract(chapter_info, '" ) title = text.extr(title, r"", r"") if title is None or title == "" or title == "": - title, _ = text.extract(chapter, ">", "", pos) + title, _ = text.extract(chapter_info, ">", "", pos) - date = text.extr(chapter, "") + date = text.extr(chapter_info, "") date = text.extr(date, 'time="', '"') data["date"] = date data["title"] = title - data["chapter"] = text.parse_int(chapter_major) - data["chapter_minor"] = sep + chapter_minor + data["chapter"] = text.parse_int(chapt_major) + data["chapter_minor"] = sep + chapt_minor if url.startswith("/"): url = self.root + url