summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/cien.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/cien.py
parent63b6119a44afe2be9563acffd72aa974bb9d7f17 (diff)
New upstream version 1.28.4.upstream/1.28.4
Diffstat (limited to 'gallery_dl/extractor/cien.py')
-rw-r--r--gallery_dl/extractor/cien.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/gallery_dl/extractor/cien.py b/gallery_dl/extractor/cien.py
index 378365e..27d50e7 100644
--- a/gallery_dl/extractor/cien.py
+++ b/gallery_dl/extractor/cien.py
@@ -9,7 +9,7 @@
"""Extractors for https://ci-en.net/"""
from .common import Extractor, Message
-from .. import text, util
+from .. import text
BASE_PATTERN = r"(?:https?://)?ci-en\.(?:net|dlsite\.com)"
@@ -56,11 +56,8 @@ class CienArticleExtractor(CienExtractor):
self.root, self.groups[0], self.groups[1])
page = self.request(url, notfound="article").text
- post = util.json_loads(text.extr(
- page, '<script type="application/ld+json">', '</script>'))[0]
-
files = self._extract_files(page)
-
+ post = self._extract_jsonld(page)[0]
post["post_url"] = url
post["post_id"] = text.parse_int(self.groups[1])
post["count"] = len(files)