Skip to content

Commit

Permalink
[batoto] extract 'title' independent of chapter info (#5988)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Aug 13, 2024
1 parent 802d74b commit 3b0753f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gallery_dl/extractor/batoto.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,15 @@ def metadata(self, page):
r"(?:Chapter|Episode)\s*(\d+)([\w.]*)", info)
if match:
volume, chapter, minor = match.groups()
title = text.unescape(text.remove_html(extr(
"selected>", "</option")).partition(" : ")[2])
else:
volume = chapter = 0
minor = ""
title = info

return {
"manga" : text.unescape(manga),
"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),
"chapter" : text.parse_int(chapter),
"chapter_minor" : minor,
Expand Down

0 comments on commit 3b0753f

Please sign in to comment.