Fix python 3.5 linting issue

This commit is contained in:
bug-assassin
2023-12-26 23:52:06 -05:00
parent 06ff1d3a3c
commit 2c3f171d65

View File

@@ -49,8 +49,8 @@ class BatoChapterExtractor(BatoBase, ChapterExtractor):
r"Chapter *([\d\.]+)", info)
manga, volume, chapter = match.groups() if match else ("", "", info)
chapter, sep, minor = chapter.partition(".")
title_container = text.extr(page, f'<a href="{self.path}"', "</a>")
title = text.extr(title_container, "<!-- -->", "</span>")
title_section = text.extr(page, '<a href="' + self.path + '"', "</a>")
title = text.extr(title_section, "<!-- -->", "</span>")
return {
"manga" : text.unescape(manga),