summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/nozomi.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-12-13 23:07:42 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2020-12-13 23:07:42 -0500
commit8f7c87a2697113134c311aaeafd9c919555a2741 (patch)
tree4ff7316ac1570683b3c968fd30d044925e47a2a5 /gallery_dl/extractor/nozomi.py
parent143723944033d7a6593d57bd1cf6ae97713b6ce7 (diff)
New upstream version 1.16.0.upstream/1.16.0
Diffstat (limited to 'gallery_dl/extractor/nozomi.py')
-rw-r--r--gallery_dl/extractor/nozomi.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/gallery_dl/extractor/nozomi.py b/gallery_dl/extractor/nozomi.py
index 15bb576..99e397b 100644
--- a/gallery_dl/extractor/nozomi.py
+++ b/gallery_dl/extractor/nozomi.py
@@ -47,8 +47,13 @@ class NozomiExtractor(Extractor):
post["artist"] = self._list(post.get("artist"))
post["copyright"] = self._list(post.get("copyright"))
post["character"] = self._list(post.get("character"))
- post["date"] = text.parse_datetime(
- post["date"] + ":00", "%Y-%m-%d %H:%M:%S%z")
+
+ try:
+ post["date"] = text.parse_datetime(
+ post["date"] + ":00", "%Y-%m-%d %H:%M:%S%z")
+ except Exception:
+ post["date"] = None
+
post.update(data)
images = post["imageurls"]
@@ -109,6 +114,10 @@ class NozomiPostExtractor(NozomiExtractor):
"keyword": "8c3a2561ccc9ad429be9850d1383a952d0b4a8ab",
"count": 7,
}),
+ # empty 'date' (#1163)
+ ("https://nozomi.la/post/130309.html", {
+ "keyword": {"date": None},
+ })
)
def __init__(self, match):