Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from weiwei-cool/main
Browse files Browse the repository at this point in the history
修复epub模式严重bug
  • Loading branch information
weiwei-cool authored Oct 28, 2023
2 parents 3c5d0a4 + efc9fab commit e119390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fanqie_epub.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def fanqie_epub(url, encoding, user_agent, path_choice, data_folder, start_chapt
# 提取 "卷名" 文本
volume_title = volume_div.text
print(volume_title)
chapters = soup.find_all("div", class_="chapter-item")
chapters = div.find_all("div", class_="chapter-item")
start_index = None
for i, chapter in enumerate(chapters):
chapter_url_tmp = urljoin(url, chapter.find("a")["href"])
Expand Down

0 comments on commit e119390

Please sign in to comment.