[batoto] extract 'title' independent of chapter info (#5988)

This commit is contained in:
Mike Fährmann
2024-08-13 20:20:32 +02:00
parent 802d74bdf6
commit 3b0753f6ea

View File

@@ -58,17 +58,15 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
r"(?:Chapter|Episode)\s*(\d+)([\w.]*)", info) r"(?:Chapter|Episode)\s*(\d+)([\w.]*)", info)
if match: if match:
volume, chapter, minor = match.groups() volume, chapter, minor = match.groups()
title = text.unescape(text.remove_html(extr(
"selected>", "</option")).partition(" : ")[2])
else: else:
volume = chapter = 0 volume = chapter = 0
minor = "" minor = ""
title = info
return { return {
"manga" : text.unescape(manga), "manga" : text.unescape(manga),
"manga_id" : text.parse_int(manga_id), "manga_id" : text.parse_int(manga_id),
"title" : title, "title" : text.unescape(text.remove_html(extr(
"selected>", "</option")).partition(" : ")[2]),
"volume" : text.parse_int(volume), "volume" : text.parse_int(volume),
"chapter" : text.parse_int(chapter), "chapter" : text.parse_int(chapter),
"chapter_minor" : minor, "chapter_minor" : minor,