From d368be1896302484653ca8ae3fb17a97a3867237 Mon Sep 17 00:00:00 2001 From: Safirex Date: Mon, 30 Dec 2024 15:01:17 +0100 Subject: [PATCH] fix bad change TOC resume parser --- src/Downloaders.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Downloaders.py b/src/Downloaders.py index 22c6a10..907b2e7 100644 --- a/src/Downloaders.py +++ b/src/Downloaders.py @@ -376,7 +376,7 @@ def processTocResume(self,html): self.createFile(0, 'TOC', resume) def parseTocResume(self, html): - soup = BeautifulSoup(html, 'html.parser').find("h1") + soup = BeautifulSoup(html, 'html.parser').find("div", id="novel_ex") print("soup ",soup.text) return soup.text if soup else "" # resume=re.findall('
'+'(.*?)'+'
',html,re.S)[0] @@ -431,10 +431,6 @@ def setUrl(self): def parseTitle(self, TocHTML): soup = BeautifulSoup(TocHTML,'html.parser') chapter_title =soup.find('h1',id='workTitle').text - # print(soup.find('h1',class_='workTitle')) - - # chapter_title = re.findall( - # '

(.*?)<', TocHTML)[0] return chapter_title def parseOnlineChapterList(self, html) -> list: