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 #45 from shing-yu/hotfix/批量模式无法使用
Browse files Browse the repository at this point in the history
Hotfix/批量模式无法使用
  • Loading branch information
shing-yu authored Feb 9, 2024
2 parents a5282f3 + a0a2a88 commit 9a26df9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/fanqie_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,12 @@ def fanqie_b(encoding, user_agent, path_choice, data_folder):
elif line.isdigit():
book_id = line
urls.append(f"https://fanqienovel.com/page/{book_id}")
break
elif "fanqienovel.com/page/" in line:
book_id = re.search(r"fanqienovel.com/page/(\d+)", line).group(1)
urls.append(f"https://fanqienovel.com/page/{book_id}")
break # 如果是正确的链接,则退出循环
elif "changdunovel.com" in line:
book_id = re.search(r"book_id=(\d+)&", line).group(1)
urls.append(f"https://fanqienovel.com/page/{book_id}")
break
else:
print(Fore.YELLOW + Style.BRIGHT + f"无法识别的内容:第{i}\n内容:{line}")
return "file syntax is incorrect"
Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import function as f
from sys import exit

version = "v2.9.1"
version = "v2.9.1-post.1"

# 检查EULA
f.check_eula()
Expand Down

0 comments on commit 9a26df9

Please sign in to comment.