[pixiv] work around strptime limitations in Python < 3.7
"%z" doesn't allow a colon separator in older Python versions:
- "+0900" is OK
- "+09:00" raises an exception
This commit is contained in:
@@ -42,7 +42,7 @@ class PixivExtractor(Extractor):
|
||||
del work["meta_pages"]
|
||||
work["num"] = ""
|
||||
work["tags"] = [tag["name"] for tag in work["tags"]]
|
||||
work["date"] = text.parse_datetime(work["create_date"])
|
||||
work["date"] = text.parse_datetime(work["create_date"][:-3] + "00")
|
||||
work.update(metadata)
|
||||
|
||||
yield Message.Directory, work
|
||||
|
||||
Reference in New Issue
Block a user