mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[batoto] return 'chapter_url' as string (#5562)
don't try to parse it as integer
This commit is contained in:
parent
8072dcf717
commit
32d2e686c2
@ -65,8 +65,7 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
|
||||
return {
|
||||
"manga" : text.unescape(manga),
|
||||
"manga_id" : text.parse_int(manga_id),
|
||||
"chapter_url" : text.parse_int(extr(
|
||||
self.chapter_id + "-ch_", '"')),
|
||||
"chapter_url" : extr(self.chapter_id + "-ch_", '"'),
|
||||
"title" : text.unescape(text.remove_html(extr(
|
||||
"selected>", "</option")).partition(" : ")[2]),
|
||||
"volume" : text.parse_int(volume),
|
||||
|
@ -17,7 +17,7 @@ __tests__ = (
|
||||
"chapter" : 8,
|
||||
"chapter_id" : 1681030,
|
||||
"chapter_minor": "",
|
||||
"chapter_url" : 8,
|
||||
"chapter_url" : "8",
|
||||
"count" : 66,
|
||||
"date" : "dt:2021-05-15 18:51:37",
|
||||
"extension" : "webp",
|
||||
@ -52,7 +52,7 @@ __tests__ = (
|
||||
"chapter" : 9,
|
||||
"chapter_id": 2584460,
|
||||
"chapter_minor": "",
|
||||
"chapter_url": 9,
|
||||
"chapter_url": "9",
|
||||
"count" : 18,
|
||||
"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)",
|
||||
@ -70,7 +70,7 @@ __tests__ = (
|
||||
"chapter" : 76,
|
||||
"chapter_id" : 2089747,
|
||||
"chapter_minor": "",
|
||||
"chapter_url" : 76,
|
||||
"chapter_url" : "76",
|
||||
"title" : "Side Story 4 [END]",
|
||||
},
|
||||
|
||||
@ -83,7 +83,7 @@ __tests__ = (
|
||||
"chapter_id" : 2631897,
|
||||
"chapter_minor" : "",
|
||||
"chapter_string": "S1 Episode 37 (End of season)",
|
||||
"chapter_url" : 38,
|
||||
"chapter_url" : "38",
|
||||
"count" : 69,
|
||||
"date" : "dt:2023-12-20 17:31:18",
|
||||
"manga" : "Today With You",
|
||||
|
Loading…
Reference in New Issue
Block a user