[sankaku] normalize 'created_at' metadata (closes #1190)

This commit is contained in:
Mike Fährmann
2020-12-21 02:04:02 +01:00
parent ae6748996a
commit 537742c0ee

View File

@@ -46,7 +46,8 @@ class SankakuExtractor(BooruExtractor):
SankakuExtractor._warning = False
if extended_tags:
self._fetch_extended_tags(post)
post["date"] = text.parse_timestamp(post["created_at"]["s"])
post["created_at"] = post["created_at"]["s"]
post["date"] = text.parse_timestamp(post["created_at"])
post["tags"] = [tag["name"] for tag in post["tags"]]
return url