From 6e3658ef52bdbc43cba55ecda6f13c0702d608e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 11 Nov 2021 19:38:10 +0100 Subject: [PATCH] [kemonoparty] provide 'date' metadata for gumroad (#2007) Not the 'published' or 'edited' values since they are 'null', but still better then nothing at all. --- gallery_dl/extractor/kemonoparty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index 2e1d0b26..e57e33ae 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -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: