summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/imagefap.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-01-12 21:27:05 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-01-12 21:27:05 -0500
commit0532a387ef5b7fcb4507a9b094dca37a5f635fe1 (patch)
tree81a387ac9407dff42faffd3a7ad29971ac23671d /gallery_dl/extractor/imagefap.py
parent63b6119a44afe2be9563acffd72aa974bb9d7f17 (diff)
New upstream version 1.28.4.upstream/1.28.4
Diffstat (limited to 'gallery_dl/extractor/imagefap.py')
-rw-r--r--gallery_dl/extractor/imagefap.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/gallery_dl/extractor/imagefap.py b/gallery_dl/extractor/imagefap.py
index 28590fc..dd5220d 100644
--- a/gallery_dl/extractor/imagefap.py
+++ b/gallery_dl/extractor/imagefap.py
@@ -9,7 +9,7 @@
"""Extractors for https://www.imagefap.com/"""
from .common import Extractor, Message
-from .. import text, util, exception
+from .. import text, exception
BASE_PATTERN = r"(?:https?://)?(?:www\.|beta\.)?imagefap\.com"
@@ -129,13 +129,11 @@ class ImagefapImageExtractor(ImagefapExtractor):
url, pos = text.extract(
page, 'original="', '"')
- info, pos = text.extract(
- page, '<script type="application/ld+json">', '</script>', pos)
image_id, pos = text.extract(
page, 'id="imageid_input" value="', '"', pos)
gallery_id, pos = text.extract(
page, 'id="galleryid_input" value="', '"', pos)
- info = util.json_loads(info)
+ info = self._extract_jsonld(page)
return url, text.nameext_from_url(url, {
"title": text.unescape(info["name"]),