[kemonoparty] provide 'date' metadata for gumroad (#2007)

Not the 'published' or 'edited' values since they are 'null',
but still better then nothing at all.
This commit is contained in:
Mike Fährmann
2021-11-11 19:38:10 +01:00
parent f4d201f626
commit 6e3658ef52

View File

@@ -66,7 +66,8 @@ class KemonopartyExtractor(Extractor):
append({"path": path, "name": path, "type": "inline"})
post["date"] = text.parse_datetime(
post["published"], "%a, %d %b %Y %H:%M:%S %Z")
post["published"] or post["added"],
"%a, %d %b %Y %H:%M:%S %Z")
if username:
post["username"] = username
if comments: