[hentainexus] fix error for spread pages (#5827)

pull/5870/head
Mike Fährmann 3 months ago
parent b3aded1939
commit 8f3f061daf
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -70,10 +70,13 @@ class HentainexusGalleryExtractor(GalleryExtractor):
for img in imgs: for img in imgs:
img["_http_headers"] = headers img["_http_headers"] = headers
return [ results = []
(img["image"], img) for img in imgs:
for img in imgs try:
] results.append((img["image"], img))
except KeyError:
pass
return results
@staticmethod @staticmethod
def _decode(data): def _decode(data):

@ -40,6 +40,7 @@ __tests__ = (
"kimono", "kimono",
"pubic hair", "pubic hair",
"uncensored", "uncensored",
"unlimited",
"vanilla", "vanilla",
], ],
"title" : "Graduation!", "title" : "Graduation!",
@ -54,6 +55,14 @@ __tests__ = (
"#class" : hentainexus.HentainexusGalleryExtractor, "#class" : hentainexus.HentainexusGalleryExtractor,
}, },
{
"#url" : "https://hentainexus.com/view/715",
"#comment" : "combined left-right pages (#5827)",
"#category": ("", "hentainexus", "gallery"),
"#class" : hentainexus.HentainexusGalleryExtractor,
"#count" : 2,
},
{ {
"#url" : "https://hentainexus.com/?q=tag:%22heart+pupils%22%20tag:group", "#url" : "https://hentainexus.com/?q=tag:%22heart+pupils%22%20tag:group",
"#category": ("", "hentainexus", "search"), "#category": ("", "hentainexus", "search"),

Loading…
Cancel
Save