[batoto] return 'chapter_url' as string (#5562)
don't try to parse it as integer
This commit is contained in:
@@ -65,8 +65,7 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
|
|||||||
return {
|
return {
|
||||||
"manga" : text.unescape(manga),
|
"manga" : text.unescape(manga),
|
||||||
"manga_id" : text.parse_int(manga_id),
|
"manga_id" : text.parse_int(manga_id),
|
||||||
"chapter_url" : text.parse_int(extr(
|
"chapter_url" : extr(self.chapter_id + "-ch_", '"'),
|
||||||
self.chapter_id + "-ch_", '"')),
|
|
||||||
"title" : text.unescape(text.remove_html(extr(
|
"title" : text.unescape(text.remove_html(extr(
|
||||||
"selected>", "</option")).partition(" : ")[2]),
|
"selected>", "</option")).partition(" : ")[2]),
|
||||||
"volume" : text.parse_int(volume),
|
"volume" : text.parse_int(volume),
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ __tests__ = (
|
|||||||
"chapter" : 8,
|
"chapter" : 8,
|
||||||
"chapter_id" : 1681030,
|
"chapter_id" : 1681030,
|
||||||
"chapter_minor": "",
|
"chapter_minor": "",
|
||||||
"chapter_url" : 8,
|
"chapter_url" : "8",
|
||||||
"count" : 66,
|
"count" : 66,
|
||||||
"date" : "dt:2021-05-15 18:51:37",
|
"date" : "dt:2021-05-15 18:51:37",
|
||||||
"extension" : "webp",
|
"extension" : "webp",
|
||||||
@@ -52,7 +52,7 @@ __tests__ = (
|
|||||||
"chapter" : 9,
|
"chapter" : 9,
|
||||||
"chapter_id": 2584460,
|
"chapter_id": 2584460,
|
||||||
"chapter_minor": "",
|
"chapter_minor": "",
|
||||||
"chapter_url": 9,
|
"chapter_url": "9",
|
||||||
"count" : 18,
|
"count" : 18,
|
||||||
"date" : "dt:2023-11-26 11:01:12",
|
"date" : "dt:2023-11-26 11:01:12",
|
||||||
"manga" : "Isekai Teni shitara Aiken ga Saikyou ni narimashita - Silver Fenrir to Ore ga Isekai Kurashi wo Hajimetara (Official)",
|
"manga" : "Isekai Teni shitara Aiken ga Saikyou ni narimashita - Silver Fenrir to Ore ga Isekai Kurashi wo Hajimetara (Official)",
|
||||||
@@ -70,7 +70,7 @@ __tests__ = (
|
|||||||
"chapter" : 76,
|
"chapter" : 76,
|
||||||
"chapter_id" : 2089747,
|
"chapter_id" : 2089747,
|
||||||
"chapter_minor": "",
|
"chapter_minor": "",
|
||||||
"chapter_url" : 76,
|
"chapter_url" : "76",
|
||||||
"title" : "Side Story 4 [END]",
|
"title" : "Side Story 4 [END]",
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ __tests__ = (
|
|||||||
"chapter_id" : 2631897,
|
"chapter_id" : 2631897,
|
||||||
"chapter_minor" : "",
|
"chapter_minor" : "",
|
||||||
"chapter_string": "S1 Episode 37 (End of season)",
|
"chapter_string": "S1 Episode 37 (End of season)",
|
||||||
"chapter_url" : 38,
|
"chapter_url" : "38",
|
||||||
"count" : 69,
|
"count" : 69,
|
||||||
"date" : "dt:2023-12-20 17:31:18",
|
"date" : "dt:2023-12-20 17:31:18",
|
||||||
"manga" : "Today With You",
|
"manga" : "Today With You",
|
||||||
|
|||||||
Reference in New Issue
Block a user