Merge pull request from Guovin/master

release: v1.1.6
This commit is contained in:
Govin 2024-05-17 18:18:11 +08:00 committed by GitHub
commit 44708e4e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 26 additions and 16 deletions

@ -1,5 +1,12 @@
# 更新日志Changelog
## v1.1.6
### 2024/5/17
- 增加组播源可全地区运行更新Added multicast sources to run region-wide updates
- 修改默认值关闭在线检索功能组播源全地区更新Change the default value: Disable the online search function and update the multicast source in all regions
## v1.1.5
### 2024/5/17

@ -25,7 +25,7 @@ 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 | ["广东珠江","CCTV-1","CCTV-5","CCTV-5+","CCTV-13","广东体育","广东卫视","大湾区卫视","浙江卫视","湖南卫视","翡翠台"] | List of favorite channel names (used only to distinguish from regular channels, custom page retrieval quantity) |
| open_online_search | True | Enable online search source feature |
| open_online_search | False | Enable online search source feature |
| 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 |
@ -39,7 +39,7 @@ Customize channel menus and automatically obtain and update the latest live sour
| open_subscribe | True | Enable subscription source feature |
| subscribe_urls | ["https://m3u.ibert.me/txt/fmml_dv6.txt",<br>"https://m3u.ibert.me/txt/o_cn.txt",<br>"https://m3u.ibert.me/txt/j_iptv.txt"] | Subscription source list |
| open_multicast | True | Enable multicast source function |
| region_list | ["广东"] | Multicast source region list, [more regions](./fofa_map.py) |
| region_list | ["all"] | Multicast source region list, [more regions](./fofa_map.py, "all" means all regions) |
## Quick Start

@ -25,7 +25,7 @@
| source_file | "demo.txt" | 模板文件名称 |
| final_file | "result.txt" | 生成文件名称 |
| favorite_list | ["广东珠江","CCTV-1","CCTV-5","CCTV-5+","CCTV-13","广东体育","广东卫视","大湾区卫视","浙江卫视","湖南卫视","翡翠台"] | 关注频道名称列表(仅用于与常规频道区分,自定义获取分页数量) |
| open_online_search | True | 开启线上检索源功能 |
| open_online_search | False | 开启线上检索源功能 |
| favorite_page_num | 5 | 关注频道获取分页数量 |
| default_page_num | 3 | 常规频道获取分页数量 |
| urls_limit | 10 | 单个频道接口数量 |
@ -39,7 +39,7 @@
| open_subscribe | True | 开启订阅源功能 |
| subscribe_urls | ["https://m3u.ibert.me/txt/fmml_dv6.txt",<br>"https://m3u.ibert.me/txt/o_cn.txt",<br>"https://m3u.ibert.me/txt/j_iptv.txt"] | 订阅源列表 |
| open_multicast | True | 开启组播源功能 |
| region_list | ["广东"] | 组播源地区列表,[更多地区](./fofa_map.py) |
| region_list | ["all"] | 组播源地区列表,[更多地区](./fofa_map.py)"all"表示所有地区 |
## 快速上手

@ -13,10 +13,10 @@ favorite_list = [
"湖南卫视",
"翡翠台",
]
open_online_search = True
open_online_search = False
favorite_page_num = 5
default_page_num = 3
urls_limit = 10
urls_limit = 15
open_sort = True
response_time_weight = 0.5
resolution_weight = 0.5
@ -31,4 +31,4 @@ subscribe_urls = [
"https://m3u.ibert.me/txt/j_iptv.txt",
]
open_multicast = True
region_list = ["广东"]
region_list = ["all"]

@ -62,7 +62,7 @@ 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 | ["广东珠江","CCTV-1","CCTV-5","CCTV-5+","CCTV-13","广东体育","广东卫视","大湾区卫视","浙江卫视","湖南卫视","翡翠台"] | List of favorite channel names (used only to distinguish from regular channels, custom page retrieval quantity) |
| open_online_search | True | Enable online search source feature |
| open_online_search | False | Enable online search source feature |
| 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 |
@ -76,7 +76,7 @@ Adjust the configuration as needed. Below is the default configuration explanati
| open_subscribe | True | Enable subscription source feature |
| subscribe_urls | ["https://m3u.ibert.me/txt/fmml_dv6.txt",<br>"https://m3u.ibert.me/txt/o_cn.txt",<br>"https://m3u.ibert.me/txt/j_iptv.txt"] | Subscription source list |
| open_multicast | True | Enable multicast source function |
| region_list | ["广东"] | Multicast source region list, [more regions](./fofa_map.py) |
| region_list | ["all"] | Multicast source region list, [more regions](./fofa_map.py, "all" means all regions) |
## Step 4: Run Updates Locally (Recommended, Stable, Supports a large number of channel updates)

@ -61,7 +61,7 @@
| source_file | "demo.txt" | 模板文件名称 |
| final_file | "result.txt" | 生成文件名称 |
| favorite_list | ["广东珠江","CCTV-1","CCTV-5","CCTV-5+","CCTV-13","广东体育","广东卫视","大湾区卫视","浙江卫视","湖南卫视","翡翠台"] | 关注频道名称列表(仅用于与常规频道区分,自定义获取分页数量) |
| open_online_search | True | 开启线上检索源功能 |
| open_online_search | False | 开启线上检索源功能 |
| favorite_page_num | 5 | 关注频道获取分页数量 |
| default_page_num | 3 | 常规频道获取分页数量 |
| urls_limit | 10 | 单个频道接口数量 |
@ -75,7 +75,7 @@
| open_subscribe | True | 开启订阅源功能 |
| subscribe_urls | ["https://m3u.ibert.me/txt/fmml_dv6.txt",<br>"https://m3u.ibert.me/txt/o_cn.txt",<br>"https://m3u.ibert.me/txt/j_iptv.txt"] | 订阅源列表 |
| open_multicast | True | 开启组播源功能 |
| region_list | ["广东"] | 组播源地区列表,[更多地区](./fofa_map.py) |
| region_list | ["all"] | 组播源地区列表,[更多地区](./fofa_map.py)"all"表示所有地区 |
## 步骤四:本地运行更新(推荐,稳定,支持大量频道更新)

@ -472,10 +472,13 @@ def getFOFAUrlsFromRegionList():
"""
region_list = getattr(config, "region_list", [])
urls = []
for region in region_list:
region_url = getattr(fofa_map, "region_url")
if region in region_url:
urls.append(region_url[region])
region_url = getattr(fofa_map, "region_url")
if "all" in region_list:
urls = [url for url in region_url.values() if url]
else:
for region in region_list:
if region in region_url:
urls.append(region_url[region])
return urls

@ -1,3 +1,3 @@
{
"version": "1.1.5"
"version": "1.1.6"
}