Skip to content

Commit 43b4f50

Browse files
committed
chore: 更新版本号并优化RSS源下载配置
- 将项目版本从1.1.28更新至1.1.29 - 启用generate.py中的runner.loads_zip()方法调用 - 将export_sources的批量处理大小从3000调整为100,减少单次处理数据量 - 扩展RSS源URL获取范围,从0-50增加到0-250,获取更多订阅源 这些修改旨在优化RSS源下载流程的性能和稳定性,通过减小批量处理大小降低内存压力,同时扩大源获取范围以增加数据覆盖率。
1 parent 016eae2 commit 43b4f50

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "funread"
3-
version = "1.1.28"
3+
version = "1.1.29"
44
description = "一个用于管理和处理阅读源(Legado 阅读 APP 的书源和 RSS 源)的 Python 工具库"
55
readme = "README.md"
66
requires-python = ">=3.8"

src/funread/legado/manage/download/generate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def generate_html_report(self):
163163
def split_and_upload(self):
164164
path = read_secret(cate1="funread", cate2="cache", cate3="path", cate4="root")
165165
with RSSSourceDownload(path=path, cate1="rss") as runner:
166-
# runner.loads_zip()
166+
runner.loads_zip()
167167
runner.loader()
168168
runner.dumps_zip()
169169

@@ -172,7 +172,7 @@ def split_and_upload(self):
172172
funos.delete(runner.path_bok)
173173
runner.loads_zip()
174174
i = 1000
175-
for data in runner.export_sources(size=3000):
175+
for data in runner.export_sources(size=100):
176176
if len(data) > 0:
177177
git_path = f"{self.dir_path}/progress-{i}.json"
178178
self.drive.upload_file(content=data, git_path=git_path)

src/funread/legado/manage/download/rss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def loader(self):
9090
"https://agit.ai/butterfly/yd/raw/branch/yd/迷迭订阅源.json",
9191
]
9292
urls.extend(
93-
[f"https://www.yckceo.com/yuedu/rsss/json/id/{_id}.json" for _id in range(0, 50)]
93+
[f"https://www.yckceo.com/yuedu/rsss/json/id/{_id}.json" for _id in range(0, 250)]
9494
)
9595
urls.extend(
9696
[f"https://www.yckceo.com/yuedu/rss/json/id/{_id}.json" for _id in range(0, 500)]

0 commit comments

Comments
 (0)