1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[batoto] return 'chapter_url' as string (#5562)

don't try to parse it as integer
This commit is contained in:
Mike Fährmann 2024-09-05 17:47:38 +02:00
parent 8072dcf717
commit 32d2e686c2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 5 additions and 6 deletions

View File

@ -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),

View File

@ -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",