mirror of
https://github.com/mikf/gallery-dl.git
synced 2025-01-31 11:41:35 +01:00
[nhentai] fix extraction (closes #819)
This commit is contained in:
parent
d769bb4b80
commit
83b7bd0413
@ -54,8 +54,8 @@ class NhentaiGalleryExtractor(NhentaiBase, GalleryExtractor):
|
||||
self.data = None
|
||||
|
||||
def metadata(self, page):
|
||||
data = json.loads(text.extract(page, "N.gallery(", ");")[0])
|
||||
self.data = data
|
||||
self.data = data = json.loads(text.parse_unicode_escapes(text.extract(
|
||||
page, 'JSON.parse("', '");')[0]))
|
||||
|
||||
title_en = data["title"].get("english", "")
|
||||
title_ja = data["title"].get("japanese", "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user