From 93c8f6e777ad1549e69b064a253f122541c84cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 12 Jul 2016 12:07:36 +0200 Subject: [PATCH] [nhentai] fix json detection --- gallery_dl/extractor/nhentai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/nhentai.py b/gallery_dl/extractor/nhentai.py index c7a2db37..8f15c836 100644 --- a/gallery_dl/extractor/nhentai.py +++ b/gallery_dl/extractor/nhentai.py @@ -45,7 +45,7 @@ class NhentaiExtractor(Extractor): def get_gallery_info(self): """Extract and return gallery-info""" page = self.request("http://nhentai.net/g/" + self.gid + "/1/").text - media_url, pos = text.extract(page, "nhentai.reader({\n\t\t\tmedia_url: '", "'") + media_url, pos = text.extract(page, ".reader({\n\t\t\tmedia_url: '", "'") json_data, pos = text.extract(page, "gallery: ", ",\n", pos) json_dict = json.loads(json_data) json_dict["media_url"] = media_url