Skip to content

Commit

Permalink
[hentainexus] fix error for spread pages (#5827)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jul 5, 2024
1 parent b3aded1 commit 8f3f061
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gallery_dl/extractor/hentainexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ def images(self, _):
for img in imgs:
img["_http_headers"] = headers

return [
(img["image"], img)
for img in imgs
]
results = []
for img in imgs:
try:
results.append((img["image"], img))
except KeyError:
pass
return results

@staticmethod
def _decode(data):
Expand Down
9 changes: 9 additions & 0 deletions test/results/hentainexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"kimono",
"pubic hair",
"uncensored",
"unlimited",
"vanilla",
],
"title" : "Graduation!",
Expand All @@ -54,6 +55,14 @@
"#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",
"#category": ("", "hentainexus", "search"),
Expand Down

0 comments on commit 8f3f061

Please sign in to comment.