From 86a97d8e275827b9764111990fbb131a5cfcea6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 5 Apr 2024 00:25:23 +0200 Subject: [PATCH] [kemonoparty] fix crash on posts with missing datetime info (#5422) --- gallery_dl/extractor/kemonoparty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index bb0b03af93..b0c24de7cd 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -82,7 +82,7 @@ def items(self): self.root, post["service"], post["user"], post["id"]) post["_http_headers"] = headers post["date"] = self._parse_datetime( - post["published"] or post["added"]) + post.get("published") or post.get("added") or "") if username: post["username"] = username