[batoto] improve 'manga_id' extraction (#5042)

This commit is contained in:
Mike Fährmann
2024-01-09 17:25:04 +01:00
parent ec958a26bc
commit 0a382a5092

View File

@@ -38,7 +38,8 @@ class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
def metadata(self, page):
extr = text.extract_from(page)
manga, info, _ = extr("<title>", "<").rsplit(" - ", 3)
manga_id = extr("/title/", "/")
manga_id = text.extr(
extr('rel="canonical" href="', '"'), "/title/", "/")
match = re.match(
r"(?:Volume\s+(\d+) )?"