From 26a539e99018b16b62e1d5e90d2c1ed6add01ef9 Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Fri, 17 May 2024 18:16:44 +0800 Subject: [PATCH] release:v1.1.6 --- CHANGELOG.md | 7 +++++++ README-EN.md | 4 ++-- README.md | 4 ++-- config.py | 6 +++--- docs/tutorial-EN.md | 4 ++-- docs/tutorial.md | 4 ++-- utils.py | 11 +++++++---- version.json | 2 +- 8 files changed, 26 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ded3746b18..ca9b80851e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README-EN.md b/README-EN.md index fa919874b5..b2a23cd430 100644 --- a/README-EN.md +++ b/README-EN.md @@ -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",
"https://m3u.ibert.me/txt/o_cn.txt",
"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 diff --git a/README.md b/README.md index 4c6516f395..e4b56048f6 100644 --- a/README.md +++ b/README.md @@ -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",
"https://m3u.ibert.me/txt/o_cn.txt",
"https://m3u.ibert.me/txt/j_iptv.txt"] | 订阅源列表 | | open_multicast | True | 开启组播源功能 | -| region_list | ["广东"] | 组播源地区列表,[更多地区](./fofa_map.py) | +| region_list | ["all"] | 组播源地区列表,[更多地区](./fofa_map.py),"all"表示所有地区 | ## 快速上手 diff --git a/config.py b/config.py index d9b745d1a5..596235c6bc 100644 --- a/config.py +++ b/config.py @@ -13,10 +13,10 @@ "湖南卫视", "翡翠台", ] -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 @@ "https://m3u.ibert.me/txt/j_iptv.txt", ] open_multicast = True -region_list = ["广东"] +region_list = ["all"] diff --git a/docs/tutorial-EN.md b/docs/tutorial-EN.md index f5ed0287c0..fa40d8cdde 100644 --- a/docs/tutorial-EN.md +++ b/docs/tutorial-EN.md @@ -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",
"https://m3u.ibert.me/txt/o_cn.txt",
"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) diff --git a/docs/tutorial.md b/docs/tutorial.md index 3166003ac7..567ec7d94c 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -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",
"https://m3u.ibert.me/txt/o_cn.txt",
"https://m3u.ibert.me/txt/j_iptv.txt"] | 订阅源列表 | | open_multicast | True | 开启组播源功能 | -| region_list | ["广东"] | 组播源地区列表,[更多地区](./fofa_map.py) | +| region_list | ["all"] | 组播源地区列表,[更多地区](./fofa_map.py),"all"表示所有地区 | ## 步骤四:本地运行更新(推荐,稳定,支持大量频道更新) diff --git a/utils.py b/utils.py index 2b7fa3410d..0efba8864c 100644 --- a/utils.py +++ b/utils.py @@ -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 diff --git a/version.json b/version.json index e613e8adaa..19d6a849ef 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "1.1.5" + "version": "1.1.6" } \ No newline at end of file