aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/cien.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-08-16 07:00:40 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-08-16 07:00:40 -0400
commit22e8d9823eb9fb802c926fb03a5fdccbea26f878 (patch)
treed399937a3bf139d386b8f5df2fc646b751c14719 /gallery_dl/extractor/cien.py
parent0839cde5064bd6000162ee23b8445b99afe10068 (diff)
parent3d18761f620a294ea6c5bff13c5994b93b29f3ed (diff)
Update upstream source from tag 'upstream/1.30.3'
Update to upstream version '1.30.3' with Debian dir cbd3490f51b0ee3f2e172965318cd079b856367d
Diffstat (limited to 'gallery_dl/extractor/cien.py')
-rw-r--r--gallery_dl/extractor/cien.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gallery_dl/extractor/cien.py b/gallery_dl/extractor/cien.py
index 7dfe6b6..45e5dab 100644
--- a/gallery_dl/extractor/cien.py
+++ b/gallery_dl/extractor/cien.py
@@ -52,17 +52,19 @@ class CienArticleExtractor(CienExtractor):
example = "https://ci-en.net/creator/123/article/12345"
def items(self):
- url = f"{self.root}/creator/{self.groups[0]}/article/{self.groups[1]}"
+ author_id, post_id = self.groups
+ url = f"{self.root}/creator/{author_id}/article/{post_id}"
page = self.request(url, notfound="article").text
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["post_id"] = text.parse_int(post_id)
post["count"] = len(files)
post["date"] = text.parse_datetime(post["datePublished"])
try:
+ post["author"]["id"] = text.parse_int(author_id)
del post["publisher"]
del post["sameAs"]
except Exception: