fix(novelpia): fix regex

This commit is contained in:
Ryu juheon 2022-04-08 15:30:38 +09:00 committed by GitHub
parent 6b32261de8
commit f3c3c6053d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Downloader_novelpia(Downloader):
def __get_total_episode_list(self, session: Session) -> Tuple[int, str]:
regex = re.compile(
rf"localStorage\['novel_page_{self.number}'\] = '(1)'; episode_list\(\);"
rf"localStorage\['novel_page_{self.number}'\] = '(.+?)'; episode_list\(\);"
)
html = self.__proc_episoe_list_url_request(session, 0)
soup = Soup(html, "lxml")