aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/pixiv.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-01 19:51:39 -0500
commit889c7b8caec8fc0b9c7a583ed1d9cfa43518fc42 (patch)
treecff4a7de7032843e4efe521d92dfce485ae944f1 /gallery_dl/extractor/pixiv.py
parenta26df18796ff4e506b16bf32fcec9336233b9e2e (diff)
New upstream version 1.29.0.upstream/1.29.0
Diffstat (limited to 'gallery_dl/extractor/pixiv.py')
-rw-r--r--gallery_dl/extractor/pixiv.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gallery_dl/extractor/pixiv.py b/gallery_dl/extractor/pixiv.py
index 7fe8869..8a4905d 100644
--- a/gallery_dl/extractor/pixiv.py
+++ b/gallery_dl/extractor/pixiv.py
@@ -71,9 +71,12 @@ class PixivExtractor(Extractor):
if self.meta_user:
work.update(self.api.user_detail(work["user"]["id"]))
if self.meta_comments:
- if work["total_comments"]:
- work["comments"] = list(
- self.api.illust_comments(work["id"]))
+ if work["total_comments"] and not work.get("_ajax"):
+ try:
+ work["comments"] = list(
+ self.api.illust_comments(work["id"]))
+ except Exception:
+ work["comments"] = ()
else:
work["comments"] = ()
if self.meta_bookmark and work["is_bookmarked"]: