From 783eae6fc51ffc324dc6c92adaf73618f8e924d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 30 Sep 2021 00:32:34 +0200 Subject: [PATCH] [hiperdex] fix extraction --- gallery_dl/extractor/hiperdex.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/hiperdex.py b/gallery_dl/extractor/hiperdex.py index a40d6319..201ffdd1 100644 --- a/gallery_dl/extractor/hiperdex.py +++ b/gallery_dl/extractor/hiperdex.py @@ -141,13 +141,17 @@ class HiperdexMangaExtractor(HiperdexBase, MangaExtractor): shortlink = text.extract(page, "rel='shortlink' href='", "'")[0] data = { - "action": "manga_get_chapters", - "manga" : shortlink.rpartition("=")[2], + "action" : "manga_get_reading_nav", + "manga" : shortlink.rpartition("=")[2], + "chapter" : "", + "volume_id": "", + "style" : "list", + "type" : "manga", } url = self.root + "/wp-admin/admin-ajax.php" page = self.request(url, method="POST", data=data).text - for url in text.extract_iter(page, 'href="', '"', 320): + for url in text.extract_iter(page, 'data-redirect="', '"'): chapter = url.rpartition("/")[2] results.append((url, self.chapter_data(chapter)))