diff --git a/.github/workflows/TV.yml b/.github/workflows/TV.yml index 9dfd1b5..8c40264 100644 --- a/.github/workflows/TV.yml +++ b/.github/workflows/TV.yml @@ -1,4 +1,4 @@ -name: Sort TV Channels +name: Live streaming source on: schedule: diff --git a/Multicast/hubei/telecom.txt b/Multicast/hubei/telecom.txt index 17b573b..9afefc3 100644 --- a/Multicast/hubei/telecom.txt +++ b/Multicast/hubei/telecom.txt @@ -83,14 +83,21 @@ CCTV-17(农业农村),rtp://239.69.1.153:10554 哈哈炫幼,rtp://239.254.96.14:8058 湖北卫视,rtp://239.254.96.1:7980 东方卫视,rtp://239.254.96.2:7986 +东方卫视4K,rtp://239.69.2.37:11376 湖南卫视,rtp://239.254.96.15:8064 +湖南卫视4K,rtp://239.69.2.34:11358 北京卫视,rtp://239.254.96.16:8070 +北京卫视4Krtp://239.69.2.22:11286 江苏卫视,rtp://239.254.96.17:8076 +江苏卫视4K,rtp://239.69.2.36:11370 浙江卫视,rtp://239.254.96.18:8082 +浙江卫视4K,rtp://239.69.2.35:11364 辽宁卫视,rtp://239.254.96.19:8088 安徽卫视,rtp://239.254.96.20:8094 山东卫视,rtp://239.254.96.21:8100 +山东卫视4K,rtp://239.69.2.38:11382 广东卫视,rtp://239.254.96.22:8106 +广东卫视4Krtp://239.69.2.27:11316 广西卫视,rtp://239.254.96.23:8112 海南卫视,rtp://239.254.96.24:8118 重庆卫视,rtp://239.254.96.25:8124 @@ -103,6 +110,7 @@ CCTV-17(农业农村),rtp://239.69.1.153:10554 金色频道,rtp://239.254.96.32:8166 都市剧场,rtp://239.254.96.33:8172 深圳卫视,rtp://239.254.96.34:8178 +深圳卫视4Krtp://239.69.2.28:11322 西藏卫视,rtp://239.254.96.35:8184 动漫秀场,rtp://239.254.96.36:8190 全纪实,rtp://239.254.96.38:8202 @@ -118,6 +126,7 @@ CCTV-17(农业农村),rtp://239.69.1.153:10554 百事通导视1,rtp://239.254.96.87:8496 百事通导视2,rtp://239.254.96.88:8502 四川卫视,rtp://239.254.96.90:8514 +四川卫视4K,rtp://239.69.2.39:11388 吉林卫视,rtp://239.254.96.91:8520 黑龙江卫视,rtp://239.254.96.92:8526 山西卫视,rtp://239.254.96.93:8532 diff --git a/README.md b/README.md index a4126ba..dfe306b 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ 🛰️组播 🌐暂无 🛰️组播 - 2020.02.27 + 2025.12.04 北京 @@ -96,7 +96,7 @@ 🛰️组播 🌐暂无 🛰️组播 - 2020.02.27 + 2025.08.22 重庆 @@ -146,7 +146,7 @@ 🌐暂无 🔗单播 🛰️组播 - 2020.02.27 + 2025.07.09 贵州 @@ -166,7 +166,7 @@ 🛰️组播 🔗单播 🛰️组播 - 2020.02.27 + 2025.07.27 河北 @@ -176,7 +176,7 @@ 🛰️组播 🔗单播 🛰️组播 - 2020.02.27 + 2025.07.27 黑龙江 @@ -196,7 +196,7 @@ 🛰️组播 🔗单播 🛰️组播 - 2020.05.02 + 2025.07.01 湖北 @@ -236,7 +236,7 @@ 🌐暂无 🔗单播 🛰️组播 - 2020.02.27 + 2025.07.27 吉林 @@ -356,7 +356,7 @@ 🌐暂无 🌐暂无 🛰️组播 - 2020.02.27 + 2025.07.27 西藏 diff --git a/TV/sort_channels.py b/TV/sort_channels.py index af445b0..fb1d617 100644 --- a/TV/sort_channels.py +++ b/TV/sort_channels.py @@ -2,6 +2,37 @@ import re import os +def load_source_urls(): + """从文件加载源地址列表""" + source_path = "TV/sources.txt" + urls = [] + + if not os.path.exists(source_path): + print(f"警告:未找到源地址文件 {source_path},使用默认源") + return ["https://live.fanmingming.com/tv/m3u/ipv6.m3u"] + + try: + with open(source_path, "r", encoding="utf-8") as f: + for line in f: + line = line.strip() + # 跳过空行和注释 + if not line or line.startswith('#'): + continue + # 只添加有效的URL + if line.startswith('http'): + urls.append(line) + print(f"加载源地址: {line}") + except Exception as e: + print(f"读取源地址文件失败: {e}") + # 失败时返回默认源 + return ["https://live.fanmingming.com/tv/m3u/ipv6.m3u"] + + if not urls: + print("警告:源地址文件为空,使用默认源") + return ["https://live.fanmingming.com/tv/m3u/ipv6.m3u"] + + return urls + def load_categories_from_template(): """从模板文件加载分类和频道信息""" categories = {} @@ -114,11 +145,9 @@ def main(): if not os.path.exists("TV"): os.makedirs("TV") - # 源地址列表 - source_urls = [ - "https://live.ottiptv.cc/iptv.m3u?userid=423579792&sign=1b9178f4a3fd4e0dc2a385881904a9c386395595d36b90d423e45f229d17e15f6ecd846bcccc97d223b5f580369a9b4cc49617734e42ee735e107e554d04bd2eec14386a398b&auth_token=acb0c268be4342419aa3ba49796b45e0", - "https://live.fanmingming.com/tv/m3u/ipv6.m3u" - ] + # 从文件加载源地址 + source_urls = load_source_urls() + print(f"共加载 {len(source_urls)} 个源地址") # 获取并合并内容 all_content = "" diff --git a/TV/sources.txt b/TV/sources.txt new file mode 100644 index 0000000..2a68d0d --- /dev/null +++ b/TV/sources.txt @@ -0,0 +1,10 @@ +# 直播源地址列表 +# 每行一个URL,以#开头的行是注释 + +# 范明明IPv6源 +https://live.fanmingming.com/tv/m3u/ipv6.m3u + +# 其他备用源(取消注释即可启用) +#https://live.ottiptv.cc/iptv.m3u?userid=423579792&sign=1b9178f4a3fd4e0dc2a385881904a9c386395595d36b90d423e45f229d17e15f6ecd846bcccc97d223b5f580369a9b4cc49617734e42ee735e107e554d04bd2eec14386a398b&auth_token=acb0c268be4342419aa3ba49796b45e0 + +# 更多源可以继续添加... \ No newline at end of file diff --git a/Unicast/anhui/mobile.txt b/Unicast/anhui/mobile.txt index 47b8331..b811f10 100644 --- a/Unicast/anhui/mobile.txt +++ b/Unicast/anhui/mobile.txt @@ -20,11 +20,11 @@ CCTV15,http://120.210.193.151:8006/120000001003/live/program/_ahbyfh-1_/live/cct CCTV16,http://120.210.193.151:8006/120000001003/live/program/_ahbyfh-1_/live/cctv16hd8m/index.m3u8 CCTV17,http://120.210.193.151:8006/120000001003/live/program/_ahbyfh-1_/live/cctv17hd4mc/index.m3u8 CCTV17,http://120.210.193.151:8006/120000001002/XMTcctv-17hd/index.m3u8 -CGTN,http://120.210.193.151:8006/120000001001/wlds:8080/ysten-business/live/cctv-9/1.m3u8 -CGTN西语, -CGTN法语, -CGTN俄语, -CGTN阿语, +CGTN,http://120.210.193.151:8006/120000000058/G_CCTV-NEWS/index.m3u8 +CGTN西语,http://120.210.193.151:8006/120000000058/G_CGTN-ESPANOL/index.m3u8 +CGTN法语,http://120.210.193.151:8006/120000000058/G_CGTN-FRANCAIS/index.m3u8 +CGTN俄语,http://120.210.193.151:8006/120000000058/G_CGTN-PYCCNN/index.m3u8 +CGTN阿语,http://120.210.193.151:8006/120000000058/G_CGTN_A/index.m3u8 卫视,#genre# 安徽卫视,http://120.210.193.151:8006/120000001003/live/program/_ahbyfh-1_/live/ahwshd8m/index.m3u8 @@ -77,10 +77,9 @@ CETV2,http://120.210.193.151:8006/120000001002/XMTcetv-2/index.m3u8 CETV4,http://120.210.193.151:8006/120000001002/XMTcetv-4/index.m3u8 地方,#genre# -金鹰卡通高清,http://120.210.193.151:8006/120000001001/wlds:8080/ysten-business/live/jinyingkaton/1.m3u8 -安徽经济高清,http://120.210.193.151:8006/120000001002/XMTah_jjhd/index.m3u8 -安徽影视高清,http://120.210.193.151:8006/120000001002/XMTah_yshd/index.m3u8 -安徽科教高清,http://120.210.193.151:8006/120000001002/XMTah_kjhd/index.m3u8 -安徽综艺高清,http://120.210.193.151:8006/120000001002/XMTah_zyhd/index.m3u8 -安徽公共高清,http://120.210.193.151:8006/120000001002/XMTah_gghd/index.m3u8 +安徽经济生活,http://120.210.193.151:8006/120000001002/XMTah_jjhd/index.m3u8 +安徽影视,http://120.210.193.151:8006/120000001002/XMTah_yshd/index.m3u8 +安徽农业科教,http://120.210.193.151:8006/120000001002/XMTah_kjhd/index.m3u8 +安徽综艺体育,http://120.210.193.151:8006/120000001002/XMTah_zyhd/index.m3u8 +安徽公共,http://120.210.193.151:8006/120000001002/XMTah_gghd/index.m3u8 安徽国际,http://120.210.193.151:8006/120000001002/XMTahgj/index.m3u8 diff --git a/Unicast/sichuan/unicom.txt b/Unicast/sichuan/unicom.txt index b82cc54..8ca65f7 100644 --- a/Unicast/sichuan/unicom.txt +++ b/Unicast/sichuan/unicom.txt @@ -1,5 +1,5 @@ 央视,#genre# -CCTV1,http://sc.rrs.169ol.com/:80PLTV/88888888/224/3221227479/index.m3u8 +CCTV1,http://sc.rrs.169ol.com:80/PLTV/88888888/224/3221227479/index.m3u8 CCTV2,http://sc.rrs.169ol.com:80/PLTV/88888888/224/3221227477/index.m3u8 CCTV3,http://sc.rrs.169ol.com:80/PLTV/88888888/224/3221227435/index.m3u8 CCTV4,http://sc.rrs.169ol.com:80/PLTV/88888888/224/3221227373/index.m3u8