Skip to content

Commit

Permalink
[batoto] improve 'manga_id' extraction (mikf#5042)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf authored and bradenhilton committed Feb 5, 2024
1 parent 388afa2 commit 7978da2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/batoto.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def __init__(self, match):
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+) )?"
Expand Down

0 comments on commit 7978da2

Please sign in to comment.