Skip to content

Commit

Permalink
chore: default config
Browse files Browse the repository at this point in the history
  • Loading branch information
Guovin committed Apr 22, 2024
1 parent 2ab67b2 commit d42e807
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Customize channel menus and automatically obtain and update the latest live sour
- Interface validation to filter out invalid interfaces
- Comprehensive sorting based on response time and resolution
- Scheduled execution, updates every day at 8:00 am Beijing time
- The maximum number of channels that can be updated in the workflow is 150, while there is no limit when running locally
- The maximum number of channels that can be updated in the workflow is 200, while there is no limit when running locally
- Set up key focus channels and configure the number of pages fetched separately
- Pagination results retrieval (configurable number of pages and interfaces)
- Ensure update timeliness, configure to retrieve interfaces updated within a recent time range
Expand All @@ -24,8 +24,8 @@ Customize channel menus and automatically obtain and update the latest live sour
| source_file | "demo.txt" | Template file name |
| final_file | "result.txt" | Generated file name |
| favorite_list | ["CCTV1","CCTV13"] | List of favorite channel names (used only to distinguish from regular channels, custom page retrieval quantity) |
| favorite_page_num | 3 | Page retrieval quantity for favorite channels |
| default_page_num | 2 | Page retrieval quantity for regular channels |
| favorite_page_num | 5 | Page retrieval quantity for favorite channels |
| default_page_num | 3 | Page retrieval quantity for regular channels |
| urls_limit | 10 | Number of interfaces per channel |
| response_time_weight | 0.5 | Response time weight value (the sum of all weight values should be 1) |
| resolution_weight | 0.5 | Resolution weight value (the sum of all weight values should be 1) |
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- 接口验效,过滤无效接口
- 按响应时间、分辨率综合权衡排序
- 定时执行,北京时间每日 8:00 执行更新一次
- 工作流更新频道数量上限 150 个,本地运行无限制
- 工作流更新频道数量上限 200 个,本地运行无限制
- 可设置重点关注频道,单独配置获取分页的数量
- 分页结果获取(可配置页数、接口数量)
- 保证更新时效性,配置获取最近时间范围内更新的接口
Expand All @@ -24,8 +24,8 @@
| source_file | "demo.txt" | 模板文件名称 |
| final_file | "result.txt" | 生成文件名称 |
| favorite_list | ["CCTV1","CCTV13"] | 关注频道名称列表(仅用于与常规频道区分,自定义获取分页数量) |
| favorite_page_num | 3 | 关注频道获取分页数量 |
| default_page_num | 2 | 常规频道获取分页数量 |
| favorite_page_num | 5 | 关注频道获取分页数量 |
| default_page_num | 3 | 常规频道获取分页数量 |
| urls_limit | 10 | 单个频道接口数量 |
| response_time_weight | 0.5 | 响应时间权重值(所有权重值总和应为 1) |
| resolution_weight | 0.5 | 分辨率权重值 (所有权重值总和应为 1) |
Expand Down
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"湖南卫视",
"翡翠台",
]
favorite_page_num = 3
default_page_num = 2
favorite_page_num = 5
default_page_num = 3
urls_limit = 10
response_time_weight = 0.5
resolution_weight = 0.5
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Adjust the configuration as needed. Below is the default configuration explanati
| source_file | "demo.txt" | Template file name |
| final_file | "result.txt" | Generated file name |
| favorite_list | ["CCTV1","CCTV13"] | List of favorite channel names (used only to distinguish from regular channels, custom page retrieval quantity) |
| favorite_page_num | 3 | Page retrieval quantity for favorite channels |
| default_page_num | 2 | Page retrieval quantity for regular channels |
| favorite_page_num | 5 | Page retrieval quantity for favorite channels |
| default_page_num | 3 | Page retrieval quantity for regular channels |
| urls_limit | 10 | Number of interfaces per channel |
| response_time_weight | 0.5 | Response time weight value (the sum of all weight values should be 1) |
| resolution_weight | 0.5 | Resolution weight value (the sum of all weight values should be 1) |
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
| source_file | "demo.txt" | 模板文件名称 |
| final_file | "result.txt" | 生成文件名称 |
| favorite_list | ["CCTV1","CCTV13"] | 关注频道名称列表(仅用于与常规频道区分,自定义获取分页数量) |
| favorite_page_num | 3 | 关注频道获取分页数量 |
| default_page_num | 2 | 常规频道获取分页数量 |
| favorite_page_num | 5 | 关注频道获取分页数量 |
| default_page_num | 3 | 常规频道获取分页数量 |
| urls_limit | 10 | 单个频道接口数量 |
| response_time_weight | 0.5 | 响应时间权重值(所有权重值总和应为 1) |
| resolution_weight | 0.5 | 分辨率权重值 (所有权重值总和应为 1) |
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def visitPage(self, channelItems):
try:
github_actions = os.environ.get("GITHUB_ACTIONS")
if not github_actions or (
pbar.n <= 150 and github_actions == "true"
pbar.n <= 200 and github_actions == "true"
):
sorted_data = await compareSpeedAndResolution(infoList)
if sorted_data:
Expand Down

0 comments on commit d42e807

Please sign in to comment.