[pixiv] fix "KeyError: 'is_bookmarked'" (#8398)

This commit is contained in:
Mike Fährmann
2025-10-13 12:21:11 +02:00
parent be46fac6ce
commit 6e4f9e2ce3

View File

@@ -274,6 +274,9 @@ class PixivExtractor(Extractor):
"profile_image_urls": {},
}
if "is_bookmarked" not in work:
work["is_bookmarked"] = True if body.get("bookmarkData") else False
work["tags"] = tags = []
for tag in body["tags"]["tags"]:
name = tag["tag"]