[dt] replace 'text.parse_datetime()' & 'text.parse_timestamp()'
This commit is contained in:
@@ -123,7 +123,7 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
|
||||
"chapter_minor" : minor,
|
||||
"chapter_string": info,
|
||||
"chapter_id" : text.parse_int(self.chapter_id),
|
||||
"date" : text.parse_timestamp(extr(' time="', '"')[:-3]),
|
||||
"date" : self.parse_timestamp(extr(' time="', '"')[:-3]),
|
||||
}
|
||||
|
||||
def images(self, page):
|
||||
@@ -167,7 +167,7 @@ class BatotoMangaExtractor(BatotoBase, MangaExtractor):
|
||||
|
||||
data["chapter"] = text.parse_int(chapter)
|
||||
data["chapter_minor"] = sep + minor
|
||||
data["date"] = text.parse_datetime(
|
||||
data["date"] = self.parse_datetime(
|
||||
extr('time="', '"'), "%Y-%m-%dT%H:%M:%S.%fZ")
|
||||
|
||||
url = f"{self.root}/title/{href}"
|
||||
@@ -188,9 +188,9 @@ def _manga_info(self, manga_id, page=None):
|
||||
"manga" : data["name"][1],
|
||||
"manga_id" : text.parse_int(manga_id),
|
||||
"manga_slug" : data["slug"][1],
|
||||
"manga_date" : text.parse_timestamp(
|
||||
"manga_date" : self.parse_timestamp(
|
||||
data["dateCreate"][1] // 1000),
|
||||
"manga_date_updated": text.parse_timestamp(
|
||||
"manga_date_updated": self.parse_timestamp(
|
||||
data["dateUpdate"][1] / 1000),
|
||||
"author" : json_list(data["authors"]),
|
||||
"artist" : json_list(data["artists"]),
|
||||
|
||||
Reference in New Issue
Block a user