[hiperdex] fix extraction

This commit is contained in:
Mike Fährmann 2021-09-30 00:32:34 +02:00
parent 12fc646c53
commit 783eae6fc5
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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)))