[nhentai] provide 'gallery_id' for pagination results (#7868)

This commit is contained in:
Mike Fährmann
2025-07-22 10:18:02 +02:00
parent ea61f432f2
commit a08f4aa1c0
2 changed files with 3 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ class NhentaiExtractor(Extractor):
data = {"_extractor": NhentaiGalleryExtractor}
for gallery_id in self._pagination():
url = f"{self.root}/g/{gallery_id}/"
data["gallery_id"] = text.parse_int(gallery_id)
yield Message.Queue, url, data
def _pagination(self):

View File

@@ -55,6 +55,8 @@ __tests__ = (
"#pattern" : nhentai.NhentaiGalleryExtractor.pattern,
"#range" : "1-30",
"#count" : 30,
"gallery_id": int,
},
{