summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/mangapark.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/mangapark.py')
-rw-r--r--gallery_dl/extractor/mangapark.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gallery_dl/extractor/mangapark.py b/gallery_dl/extractor/mangapark.py
index a28a966..dcf1972 100644
--- a/gallery_dl/extractor/mangapark.py
+++ b/gallery_dl/extractor/mangapark.py
@@ -104,7 +104,7 @@ class MangaparkChapterExtractor(MangaparkBase, ChapterExtractor):
return data
def images(self, page):
- data = json.loads(text.extract(page, "var _load_pages =", ";")[0])
+ data = json.loads(text.extr(page, "var _load_pages =", ";"))
return [
(text.urljoin(self.root, item["u"]), {
"width": text.parse_int(item["w"]),
@@ -136,10 +136,10 @@ class MangaparkMangaExtractor(MangaparkBase, MangaExtractor):
results = []
data = {"lang": "en", "language": "English"}
data["manga"] = text.unescape(
- text.extract(page, '<title>', ' Manga - ')[0])
+ text.extr(page, '<title>', ' Manga - '))
for stream in page.split('<div id="stream_')[1:]:
- data["stream"] = text.parse_int(text.extract(stream, '', '"')[0])
+ data["stream"] = text.parse_int(text.extr(stream, '', '"'))
for chapter in text.extract_iter(stream, '<li ', '</li>'):
path , pos = text.extract(chapter, 'href="', '"')