[nijie] fix 'date' parsing

This commit is contained in:
Mike Fährmann
2019-11-30 23:08:21 +01:00
parent 3bba763ab9
commit e62c209ca0

View File

@@ -69,8 +69,8 @@ class NijieExtractor(AsynchronousMixin, Extractor):
"description": text.unescape(extr(
'"description": "', '"').replace("&", "&")),
"date" : text.parse_datetime(extr(
'"datePublished": "', '"')[:-4] + "+0900",
"%a %d %b %Y %I:%M:%S %p%z"),
'"datePublished": "', '"') + "+0900",
"%a %b %d %H:%M:%S %Y%z"),
"artist_id" : text.parse_int(extr(
'"sameAs": "https://nijie.info/members.php?id=', '"')),
"artist_name": keywords[1],