[sankaku] fix 'tags' metadata (#7155)

rename 'tag_names' to 'tags'
This commit is contained in:
Mike Fährmann
2025-03-12 17:07:40 +01:00
parent d40f8a82be
commit 898a09bf7f
2 changed files with 4 additions and 12 deletions

View File

@@ -66,8 +66,7 @@ class SankakuExtractor(BooruExtractor):
def _prepare(self, post):
post["created_at"] = post["created_at"]["s"]
post["date"] = text.parse_timestamp(post["created_at"])
post["tags"] = [tag["name"].lower().replace(" ", "_")
for tag in post["tags"] if tag["name"]]
post["tags"] = post.pop("tag_names", ())
post["tag_string"] = " ".join(post["tags"])
post["_http_validate"] = self._check_expired