[pixiv] provide 'count' metadata (#8794)

This commit is contained in:
Mike Fährmann
2026-01-01 10:03:03 +01:00
parent b1cae08507
commit 4e56be4def
2 changed files with 8 additions and 6 deletions

View File

@@ -92,10 +92,11 @@ class PixivExtractor(Extractor):
work["caption"] = self._sanitize_ajax_caption(
body["illustComment"])
if transform_tags:
if transform_tags is not None:
transform_tags(work)
work["num"] = 0
work["date"] = dt.parse_iso(work["create_date"])
work["count"] = len(files)
work["rating"] = ratings.get(work["x_restrict"])
work["suffix"] = ""
work.update(metadata)