Skip to content

Commit

Permalink
Merge pull request #2250 from SirGryphin/isotls
Browse files Browse the repository at this point in the history
fixed isotls
  • Loading branch information
dipu-bd authored Feb 9, 2024
2 parents 16cfd18 + 2344f9d commit c95eb36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sources/en/i/isotls.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read_novel_info(self):
if possible_novel_author:
self.novel_author = possible_novel_author['content']

for a in soup.select('main section div:nth-child(2) ul li a'):
for a in soup.select('main section:nth-child(3) nav ul li a'):
chap_id = len(self.chapters) + 1
vol_id = len(self.chapters) // 100 + 1
if len(self.chapters) % 100 == 0:
Expand All @@ -41,6 +41,5 @@ def read_novel_info(self):

def download_chapter_body(self, chapter):
soup = self.get_soup(chapter['url'])
contents = soup.select('article p')
body = [str(p) for p in contents if p.text.strip()]
return '<p>' + '</p><p>'.join(body) + '</p>'
contents = soup.select_one("div.content")
return self.cleaner.extract_contents(contents)

0 comments on commit c95eb36

Please sign in to comment.