Skip to content

Commit

Permalink
🎉 Release v1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
freeok committed Jan 8, 2025
1 parent 2cd89a8 commit 02ba9de
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

## 前言

适合用户:既想免费看正版付费新书,又想获得更佳的阅读体验的网络文学爱好者
适合用户:既想免费看正版付费新书,又追求更佳阅读体验的网络文学爱好者。

适用场景:国内网上 98% 的 txt 、epub 等格式的小说都是完本。如果想看新书,要么去正版平台付费,要么笔趣阁等一类网站,要么用”阅读“(仅限安卓)等一类
APP。其实这两个方案足够多数人用了,但总会有众口难调的情况:嫌弃 UI
难看的、吐槽功能的、受限于平台的。这时阅读器的优势就体现出来了:DIY。这个工具最大的意义就是能把连载的新书下载为 epub
等电子书格式,这样就能导入自己喜爱的阅读器
适用场景:国内网上 98% 的 TXT 、EPUB 等格式的小说都是完本。如果想看新书,要么去起点等一类的正版平台付费阅读,要么去笔趣阁等一类网站,要么用“阅读”(仅限安卓)等一类
APP。其实这些方案足够很多人用了,但总会有众口难调的情况:嫌弃 UI
难看的、吐槽功能的、受限于平台的。这时阅读器的优势便显现出来了——DIY。这个工具最大的意义就是能把连载的新书免费下载为 EPUB
等电子书格式,从而导入自己喜爱的阅读器。

对于完本小说,本工具依然可以搜索下载。若出现错别字、排版等问题,建议自行搜索下载对应精校版
对于完本小说,本工具同样可以搜索下载。若出现错别字、排版等问题,建议自行搜索下载对应精校版

## 介绍

Expand Down
Binary file modified assets/sample.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ threads = -1

[retry]
# 最大重试次数 (针对首次下载失败的章节)
max-attempts = 5
max-attempts = 3
# 重试爬取最小间隔 (毫秒)
min = 1000
# 重试爬取最大间隔 (毫秒)
Expand Down
16 changes: 8 additions & 8 deletions input/readme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Windows 用户
运行 exe
运行 SoNovel.exe

macOS 用户
运行 macos-run.sh
Expand All @@ -16,13 +16,13 @@ Linux 用户


温馨提示
- 将终端窗口最大化,使用体验更佳
- config.ini 是配置文件,书源、下载格式在此修改,修改后无需重启(不保证非 Windows 适用)
- 如何选择适合自己的书源:https://github.com/freeok/so-novel/issues/50
- 若无法搜索,建议多次尝试稍后再试、检查网络环境
- 若章节下载失败,可尝试增大爬取间隔,直至合适为止
- 若认为下载速度较慢,可适当减小爬取间隔,直至合适为止
- 爬取间隔过小可能会导致 IP 被部分书源限流,短时间内将无法使用
- 为获得更好的使用体验,请将终端窗口最大化。
- config.ini 是配置文件,您可以在其中修改书源和下载格式。修改后无需重启应用(非 Windows 系统的兼容性未完全保证)。
- 如何选择适合自己的书源,请参考:https://github.com/freeok/so-novel/issues/50
- 如果搜索失败,建议多次尝试稍后再试,并检查您的网络连接。
- 若章节下载失败,您可以尝试增大爬取间隔,直到找到合适的设置。
- 如果认为下载速度较慢,适当减小爬取间隔可能有助于提高速度,直到达到合适的平衡。
- 请注意,设置过小的爬取间隔可能会导致部分书源对您的 IP 限流,从而无法正常使用。


问题反馈
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.pcdd</groupId>
<artifactId>so-novel</artifactId>
<version>1.7.3</version>
<version>1.7.4</version>
<packaging>jar</packaging>

<name>so-novel</name>
Expand Down Expand Up @@ -178,7 +178,7 @@
<txtFileVersion>${project.version}.0</txtFileVersion>
<!-- 中文会乱码,待解决 -->
<fileDescription>Interactive online novel downloader</fileDescription>
<copyright>Copyright (C) 2021 pcdd. All rights reserved.</copyright>
<copyright>Copyright (C) 2021-2025 pcdd. All rights reserved.</copyright>
<productVersion>${project.version}.0</productVersion>
<txtProductVersion>${project.version}.0</txtProductVersion>
<!-- 中文会乱码,待解决 -->
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/pcdd/sonovel/action/ShowSourcesAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static List<SourceInfo> testWebsiteDelays(List<Rule> rules) {
List<SourceInfo> res = new ArrayList<>();
ExecutorService executorService = Executors.newFixedThreadPool(10);
CompletionService<SourceInfo> completionService = new ExecutorCompletionService<>(executorService);
int timeout = 5000;
int timeout = 3000;

for (Rule r : rules) {
completionService.submit(() -> {
Expand All @@ -82,7 +82,6 @@ private static List<SourceInfo> testWebsiteDelays(List<Rule> rules) {
});
}

// 获取任务结果并按延迟排序
for (int i = 0; i < rules.size(); i++) {
// 获取最先完成的任务的结果
res.add(completionService.take().get());
Expand Down

0 comments on commit 02ba9de

Please sign in to comment.