aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/zerochan.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-04-15 05:25:44 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-04-15 05:25:44 -0400
commit71c4f9dc93d81a2733a8ec8fe177e3db0e37d33b (patch)
tree284174b9244e04f24ef1fadc5a8ef6980e7b5559 /gallery_dl/extractor/zerochan.py
parentf13f90dc9ba67ad4a4a2b7a94d175186900b7d38 (diff)
parentb830dc03b3b7c9dd119648e1be9c1145d56e096c (diff)
Update upstream source from tag 'upstream/1.29.4'
Update to upstream version '1.29.4' with Debian dir a15c4baddb14f9fd81eb2888aeeba8d3406c73f4
Diffstat (limited to 'gallery_dl/extractor/zerochan.py')
-rw-r--r--gallery_dl/extractor/zerochan.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/gallery_dl/extractor/zerochan.py b/gallery_dl/extractor/zerochan.py
index ac1400e..0ad73c0 100644
--- a/gallery_dl/extractor/zerochan.py
+++ b/gallery_dl/extractor/zerochan.py
@@ -74,7 +74,6 @@ class ZerochanExtractor(BooruExtractor):
extr = text.extract_from(page)
data = {
"id" : text.parse_int(entry_id),
- "author" : jsonld["author"]["name"],
"file_url": jsonld["contentUrl"],
"date" : text.parse_datetime(jsonld["datePublished"]),
"width" : text.parse_int(jsonld["width"][:-3]),
@@ -88,6 +87,11 @@ class ZerochanExtractor(BooruExtractor):
'id="source-url"', '</p>').rpartition("</s>")[2])),
}
+ try:
+ data["author"] = jsonld["author"]["name"]
+ except Exception:
+ data["author"] = ""
+
html = data["tags"]
tags = data["tags"] = []
for tag in html.split("<li class=")[1:]: