Skip to content

Commit

Permalink
Merge pull request #9 from Guovin/dev
Browse files Browse the repository at this point in the history
UPDATE README
  • Loading branch information
Guovin authored Mar 13, 2024
2 parents 89922ec + b27f996 commit 89cc935
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
23 changes: 13 additions & 10 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Customize channel menus, automatically fetch and update the latest live source i
- Comprehensive sorting based on response time and resolution
- Scheduled execution, updates every 12 hours
- Set up key focus channels and configure the number of pages fetched separately
- Pagination results fetching (configurable number of pages and total number of interfaces)
- Pagination results retrieval (configurable number of pages and interfaces)
- Ensure update timeliness, configure to retrieve interfaces updated within a recent time range

## How to Use

Expand All @@ -24,15 +25,17 @@ Customize channel menus, automatically fetch and update the latest live source i

#### config.py:

- source_file: Template file, default value: demo.txt
- final_file: Generated file, default value: result.txt
- favorite_list: List of focus channel names
- favorite_page_num: Number of pages fetched for focus channels, default value: 8
- default_page_num: Number of pages fetched for regular channels, default value: 5
- urls_limit: Number of interfaces, default value: 15
- response_time_weight: Response time weight value, default value: 0.5
- resolution_weight: Resolution weight value, default value: 0.5
- recent_days: Interface to get the most recent updates (in days), default value: 60
| Configuration Item | Description | Default Value |
| -------------------- | ------------------------------------------------------------------------------------------------------------------ | ------------------ |
| source_file | Template file name | demo.txt |
| final_file | Generated file name | result.txt |
| favorite_list | List of favorite channel names (used only to distinguish from regular channels, custom page retrieval quantity) | ["CCTV1","CCTV13"] |
| favorite_page_num | Page retrieval quantity for favorite channels | 8 |
| default_page_num | Page retrieval quantity for regular channels | 5 |
| urls_limit | Number of interfaces per channel | 15 |
| response_time_weight | Response time weight value (the sum of all weight values should be 1) | 0.5 |
| resolution_weight | Resolution weight value (the sum of all weight values should be 1) | 0.5 |
| recent_days | Retrieve interfaces updated within a recent time range (in days), reducing appropriately can avoid matching issues | 60 |

#### .github/workflows/main.yml:

Expand Down
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
- 按响应时间、分辨率综合权衡排序
- 定时执行,每隔 12 小时执行更新一次
- 可设置重点关注频道,单独配置获取分页的数量
- 分页结果获取(可配置页数、总接口数量)
- 分页结果获取(可配置页数、接口数量)
- 保证更新时效性,配置获取最近时间范围内更新的接口

## 使用方法

Expand All @@ -24,15 +25,17 @@

#### config.py:

- source_file:模板文件,默认值:demo.txt
- final_file:生成文件,默认值:result.txt
- favorite_list:关注频道名称列表
- favorite_page_num:关注频道获取分页数量,默认值:8
- default_page_num:常规频道获取分页数量,默认值:5
- urls_limit:接口数量,默认值:15
- response_time_weight:响应时间权重值,默认值:0.5
- resolution_weight:分辨率权重值,默认值:0.5
- recent_days:获取最近更新(单位天)的接口,默认值:60
| 配置项 | 描述 | 默认值 |
| -------------------- | ------------------------------------------------------------------ | ------------------ |
| source_file | 模板文件名称 | demo.txt |
| final_file | 生成文件名称 | result.txt |
| favorite_list | 关注频道名称列表(仅用于与常规频道区分,自定义获取分页数量) | ["CCTV1","CCTV13"] |
| favorite_page_num | 关注频道获取分页数量 | 8 |
| default_page_num | 常规频道获取分页数量 | 5 |
| urls_limit | 单个频道接口数量 | 15 |
| response_time_weight | 响应时间权重值(所有权重值总和应为 1) | 0.5 |
| resolution_weight | 分辨率权重值 (所有权重值总和应为 1) | 0.5 |
| recent_days | 获取最近时间范围内更新的接口(单位天),适当减小可避免出现匹配问题 | 60 |

#### .github/workflows/main.yml:

Expand All @@ -47,7 +50,7 @@

### 2024/3/13

- 增加配置项:recent_days,筛选获取最近更新的接口,默认最近 60 天
- 增加配置项:recent_days,筛选获取最近时间范围内更新的接口,默认最近 60 天
- 调整默认值:关注频道获取 8 页,常规频道获取 5 页

### 2024/3/6
Expand Down

0 comments on commit 89cc935

Please sign in to comment.