Skip to content

Commit

Permalink
[nhentai] fix extraction (closes #819)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 9, 2020
1 parent d769bb4 commit 83b7bd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/nhentai.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def __init__(self, match):
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", "")
Expand Down

0 comments on commit 83b7bd0

Please sign in to comment.