[dt] use 'parse_datetime_iso()' for ISO formats

This commit is contained in:
Mike Fährmann
2025-10-19 19:31:31 +02:00
parent 5802107cdf
commit c38856bd3f
57 changed files with 102 additions and 165 deletions

View File

@@ -40,10 +40,8 @@ class MangataroChapterExtractor(MangataroBase, ChapterExtractor):
"chapter_minor": str(round(minor, 5))[1:] if minor else "",
"chapter_id" : text.parse_int(chapter_id),
"chapter_url" : comic["url"],
"date" : self.parse_datetime(
comic["datePublished"], "%Y-%m-%dT%H:%M:%S%z"),
"date_updated" : self.parse_datetime(
comic["dateModified"], "%Y-%m-%dT%H:%M:%S%z"),
"date" : self.parse_datetime_iso(comic["datePublished"]),
"date_updated" : self.parse_datetime_iso(comic["dateModified"]),
}
def images(self, page):