diff --git a/gallery_dl/extractor/nhentai.py b/gallery_dl/extractor/nhentai.py index 8544d3c0..b0ec41fa 100644 --- a/gallery_dl/extractor/nhentai.py +++ b/gallery_dl/extractor/nhentai.py @@ -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): diff --git a/test/results/nhentai.py b/test/results/nhentai.py index e10d8679..f2144e74 100644 --- a/test/results/nhentai.py +++ b/test/results/nhentai.py @@ -55,6 +55,8 @@ __tests__ = ( "#pattern" : nhentai.NhentaiGalleryExtractor.pattern, "#range" : "1-30", "#count" : 30, + + "gallery_id": int, }, {