1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[hentainexus] add '_extractor' data

This commit is contained in:
Mike Fährmann 2019-05-28 00:20:01 +02:00
parent 2a085a5e96
commit 8bd5a19515
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -85,11 +85,12 @@ class HentainexusSearchExtractor(Extractor):
while path:
page = self.request(self.root + path, params=params).text
extr = text.extract_from(page)
data = {"_extractor": HentainexusGalleryExtractor}
while True:
gallery_id = extr('<a href="/view/', '"')
if not gallery_id:
break
yield Message.Queue, self.root + "/view/" + gallery_id, {}
yield Message.Queue, self.root + "/view/" + gallery_id, data
path = extr('class="pagination-next" href="', '"')