diff --git a/gallery_dl/extractor/mangapark.py b/gallery_dl/extractor/mangapark.py index 5d1f53eb..80d59ff1 100644 --- a/gallery_dl/extractor/mangapark.py +++ b/gallery_dl/extractor/mangapark.py @@ -63,19 +63,13 @@ class MangaparkMangaExtractor(MangaparkExtractor, MangaExtractor): for stream in page.split('
', '
', pos) - count, pos = text.extract(stream, ' of ', ' ', pos) + for chapter in text.extract_iter(stream, '
  • '): + path , pos = text.extract(chapter, 'href="', '"') + title, pos = text.extract(chapter, '>: ', '<', pos) + count, pos = text.extract(chapter, ' of ', ' ', pos) self.parse_chapter_path(path[8:], data) - data["title"] = title.strip()[2:] + data["title"] = title.strip() if title else "" data["count"] = text.parse_int(count) results.append((self.root + path, data.copy()))