summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/hentai2read.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/hentai2read.py')
-rw-r--r--gallery_dl/extractor/hentai2read.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gallery_dl/extractor/hentai2read.py b/gallery_dl/extractor/hentai2read.py
index dc4e31d..e771a4f 100644
--- a/gallery_dl/extractor/hentai2read.py
+++ b/gallery_dl/extractor/hentai2read.py
@@ -9,8 +9,7 @@
"""Extractors for https://hentai2read.com/"""
from .common import ChapterExtractor, MangaExtractor
-from .. import text
-import json
+from .. import text, util
import re
@@ -78,7 +77,7 @@ class Hentai2readChapterExtractor(Hentai2readBase, ChapterExtractor):
images = text.extract(page, "'images' : ", ",\n")[0]
return [
("https://hentaicdn.com/hentai" + part, None)
- for part in json.loads(images)
+ for part in util.json_loads(images)
]