chore:name
This commit is contained in:
parent
551cedd50c
commit
275f1da224
@ -83,7 +83,7 @@
|
||||
- 支持多种获取源方式:组播源、酒店源、订阅源、线上检索
|
||||
- 接口测速验效,响应时间、分辨率优先级,过滤无效接口
|
||||
- 定时执行,北京时间每日 6:00 与 18:00 执行更新
|
||||
- 支持多种运行方式:工作流、命令行、界面软件、Docker(amd64/arm64)
|
||||
- 支持多种运行方式:工作流、命令行、GUI 软件、Docker(amd64/arm64)
|
||||
- 更多功能请见[配置参数](./docs/config.md)
|
||||
|
||||
## 最新结果:
|
||||
@ -118,11 +118,11 @@ pipenv install
|
||||
pipenv run build
|
||||
```
|
||||
|
||||
### 方式三:界面软件更新
|
||||
### 方式三:GUI 软件更新
|
||||
|
||||
1. 下载[更新工具软件](https://github.com/Guovin/TV/releases),打开软件,点击更新,即可完成更新
|
||||
|
||||
2. 或者在项目目录下运行以下命令,即可打开界面软件:
|
||||
2. 或者在项目目录下运行以下命令,即可打开 GUI 软件:
|
||||
|
||||
```python
|
||||
pipenv run ui
|
||||
@ -133,7 +133,7 @@ pipenv run ui
|
||||
### 方式四:Docker 更新
|
||||
|
||||
- requests:轻量级,性能要求低,更新速度快,稳定性不确定(推荐订阅源使用此版本)
|
||||
- driver:性能要求较高,更新速度较慢,稳定性、成功率高;修改配置 open_driver = False 可切换到 request 版本(推荐酒店源、组播源、在线搜索使用此版本)
|
||||
- driver:性能要求较高,更新速度较慢,稳定性、成功率高;修改配置 open_driver = False 可切换到 request 版本(推荐酒店源、组播源、关键字搜索使用此版本)
|
||||
|
||||
建议都试用一次,选择自己合适的版本。
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
| open_proxy | False | 开启代理,自动获取免费可用代理,若更新无数据可开启此模式 |
|
||||
| source_file | config/demo.txt | 模板文件路径 |
|
||||
| final_file | output/result.txt | 生成结果文件路径 |
|
||||
| open_online_search | False | 开启线上检索源功能 |
|
||||
| online_search_page_num | 3 | 在线检索频道获取分页数量 |
|
||||
| open_online_search | False | 开启关键字搜索源功能 |
|
||||
| online_search_page_num | 3 | 关键字搜索频道获取分页数量 |
|
||||
| urls_limit | 15 | 单个频道接口数量 |
|
||||
| open_keep_all | False | 保留所有检索结果,会保留非模板频道名称的结果,推荐手动维护时开启 |
|
||||
| open_sort | True | 开启排序功能(响应速度、日期、分辨率) |
|
||||
@ -39,9 +39,9 @@
|
||||
| hotel_region_list | 全部 | 酒店源地区列表,[更多地区](../updates/fofa/fofa_map.py),"全部"表示所有地区 |
|
||||
| hotel_page_num | 3 | 酒店地区获取分页数量 |
|
||||
| request_timeout | 10 | 查询请求超时时长,单位秒(s),用于控制查询接口文本链接的超时时长以及重试时长,调整此值能优化更新时间 |
|
||||
| origin_type_prefer | hotel,multicast,subscribe,online_search | 结果偏好的接口来源,结果优先按该顺序进行排序,hotel:酒店源,multicast:组播源,subscribe:订阅源,online_search:在线搜索 |
|
||||
| origin_type_prefer | hotel,multicast,subscribe,online_search | 结果偏好的接口来源,结果优先按该顺序进行排序,hotel:酒店源,multicast:组播源,subscribe:订阅源,online_search:关键字搜索 |
|
||||
| hotel_num | 10 | 结果中偏好的酒店源接口数量 |
|
||||
| multicast_num | 10 | 结果中偏好的组播源接口数量 |
|
||||
| subscribe_num | 10 | 结果中偏好的订阅源接口数量 |
|
||||
| online_search_num | 10 | 结果中偏好的在线搜索接口数量 |
|
||||
| online_search_num | 10 | 结果中偏好的关键字搜索接口数量 |
|
||||
| open_url_info | True | 开启显示接口说明信息,用于控制是否显示分辨率、接口协议类型等信息,为$符号后的内容,播放软件使用该信息对接口进行描述 |
|
||||
|
@ -7,8 +7,8 @@
|
||||
| open_proxy | False | Enable proxy, automatically obtains free available proxies, If there are no updates, this mode can be enabled |
|
||||
| source_file | config/demo.txt | Template file path |
|
||||
| final_file | output/result.txt | Generated result file path |
|
||||
| open_online_search | False | Enable online search source feature |
|
||||
| online_search_page_num | 3 | Page retrieval quantity for online search channels |
|
||||
| open_online_search | False | Enable keyword search source feature |
|
||||
| online_search_page_num | 3 | Page retrieval quantity for keyword search channels |
|
||||
| urls_limit | 15 | Number of interfaces per channel |
|
||||
| open_keep_all | False | Retain all search results, retain results with non-template channel names, recommended to be turned on when manually maintaining |
|
||||
| open_sort | True | Enable the sorting function (response speed, date, resolution) |
|
||||
@ -39,9 +39,9 @@
|
||||
| hotel_region_list | all | List of hotel source regions, [more regions](../updates/fofa/fofa_map.py), 'all' indicates all regions |
|
||||
| hotel_page_num | 3 | Number of pages to retrieve for hotel regions |
|
||||
| request_timeout | 10 | Query request timeout duration, in seconds (s), used to control the timeout and retry duration for querying interface text links. Adjusting this value can optimize update time. |
|
||||
| origin_type_prefer | hotel, multicast, subscribe, online_search | Result preference for the source of the interface, results are prioritized in this order: hotel: hotel source, multicast: multicast source, subscribe: subscription source, online_search: online search |
|
||||
| origin_type_prefer | hotel, multicast, subscribe, online_search | Result preference for the source of the interface, results are prioritized in this order: hotel: hotel source, multicast: multicast source, subscribe: subscription source, online_search: keyword search |
|
||||
| hotel_num | 10 | The number of preferred hotel source interfaces in the results |
|
||||
| multicast_num | 10 | The number of preferred multicast source interfaces in the results |
|
||||
| subscribe_num | 10 | The number of preferred subscribe source interfaces in the results |
|
||||
| online_search_num | 10 | The number of preferred online search interfaces in the results |
|
||||
| online_search_num | 10 | The number of preferred keyword search interfaces in the results |
|
||||
| open_url_info | True | Enable display of API description information, used to control whether to show resolution, API protocol type, etc., the content after the $ symbol, playback software uses this information to describe the API |
|
||||
|
@ -179,11 +179,11 @@ pipenv install
|
||||
pipenv run build
|
||||
```
|
||||
|
||||
### 方式三:界面软件更新
|
||||
### 方式三:GUI 软件更新
|
||||
|
||||
1. 下载[更新工具软件](https://github.com/Guovin/TV/releases),打开软件,点击更新,即可完成更新
|
||||
|
||||
2. 或者在项目目录下运行以下命令,即可打开界面软件:
|
||||
2. 或者在项目目录下运行以下命令,即可打开 GUI 软件:
|
||||
|
||||
```python
|
||||
pipenv run ui
|
||||
@ -194,7 +194,7 @@ pipenv run ui
|
||||
### 方式四:Docker 更新
|
||||
|
||||
- requests:轻量级,性能要求低,更新速度快,稳定性不确定(推荐订阅源使用此版本)
|
||||
- driver:性能要求较高,更新速度较慢,稳定性、成功率高;修改配置 open_driver = False 可切换到 request 版本(推荐酒店源、组播源、在线搜索使用此版本)
|
||||
- driver:性能要求较高,更新速度较慢,稳定性、成功率高;修改配置 open_driver = False 可切换到 request 版本(推荐酒店源、组播源、关键字搜索使用此版本)
|
||||
|
||||
```bash
|
||||
1. 拉取镜像:
|
||||
|
@ -191,7 +191,7 @@ pipenv run ui
|
||||
### Method 4: Docker Update
|
||||
|
||||
- requests: Lightweight, low performance requirements, fast update speed, stability uncertain (recommend this version for subscription sources)
|
||||
- driver: Higher performance requirements, slower update speed, high stability and success rate. Set open_driver = False to switch to the request version (recommended for hotel sources, multicast sources, and online searches)
|
||||
- driver: Higher performance requirements, slower update speed, high stability and success rate. Set open_driver = False to switch to the request version (recommended for hotel sources, multicast sources, and keyword search)
|
||||
|
||||
```bash
|
||||
1. Pull the image:
|
||||
|
@ -13,7 +13,7 @@ class OnlineSearchUI:
|
||||
frame_online_search_open_online_search.pack(fill=tk.X)
|
||||
|
||||
self.open_online_search_label = tk.Label(
|
||||
frame_online_search_open_online_search, text="开启在线搜索:", width=13
|
||||
frame_online_search_open_online_search, text="开启关键字搜索:", width=13
|
||||
)
|
||||
self.open_online_search_label.pack(side=tk.LEFT, padx=4, pady=8)
|
||||
self.open_online_search_var = tk.BooleanVar(
|
||||
|
@ -134,7 +134,7 @@ class ConfigOption:
|
||||
"酒店源": "hotel",
|
||||
"组播源": "multicast",
|
||||
"订阅源": "subscribe",
|
||||
"在线搜索": "online_search",
|
||||
"关键字搜索": "online_search",
|
||||
}
|
||||
combo_box_values_name = list(self.origin_type_prefer_obj.keys())
|
||||
self.combo_box["values"] = combo_box_values_name
|
||||
|
@ -195,7 +195,7 @@ class TkinterUI:
|
||||
)
|
||||
notebook.add(
|
||||
frame_online_search,
|
||||
text="在线搜索",
|
||||
text="关键字搜索",
|
||||
image=online_search_icon,
|
||||
compound=tk.LEFT,
|
||||
)
|
||||
|
@ -32,13 +32,13 @@ async def use_accessible_url(callback):
|
||||
"""
|
||||
Check if the url is accessible
|
||||
"""
|
||||
callback(f"正在获取最优的在线检索节点", 0)
|
||||
callback(f"正在获取最优的关键字搜索节点", 0)
|
||||
baseUrl1 = "https://www.foodieguide.com/iptvsearch/"
|
||||
baseUrl2 = "http://tonkiang.us/"
|
||||
task1 = create_task(get_speed(baseUrl1, timeout=timeout))
|
||||
task2 = create_task(get_speed(baseUrl2, timeout=timeout))
|
||||
task_results = await gather(task1, task2)
|
||||
callback(f"获取在线检索节点完成", 100)
|
||||
callback(f"获取关键字搜索节点完成", 100)
|
||||
if task_results[0] == float("inf") and task_results[1] == float("inf"):
|
||||
return None
|
||||
if task_results[0] < task_results[1]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user