Skip to content

Commit

Permalink
[kemonoparty] fix crash on posts with missing datetime info (#5422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 4, 2024
1 parent ef8f02c commit 86a97d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/kemonoparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86a97d8

Please sign in to comment.