[pixiv] fix "KeyError: 'is_bookmarked'" (#8398)
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user