Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/TV.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sort TV Channels
name: Live streaming source

on:
schedule:
Expand Down
9 changes: 9 additions & 0 deletions Multicast/hubei/telecom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/anhui/mobile.txt">🛰️组播</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/anhui/telecom.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/anhui/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.12.04</td>
</tr>
<tr>
<td>北京</td>
Expand All @@ -96,7 +96,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/beijing/mobile.txt">🛰️组播</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/beijing/telecom.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/beijing/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.08.22</td>
</tr>
<tr>
<td>重庆</td>
Expand Down Expand Up @@ -146,7 +146,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/guangxi/mobile.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/guangxi/telecom.txt">🔗单播</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/guangxi/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.07.09</td>
</tr>
<tr>
<td>贵州</td>
Expand All @@ -166,7 +166,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/hainan/mobile.txt">🛰️组播</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/hainan/telecom.txt">🔗单播</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/hainan/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.07.27</td>
</tr>
<tr>
<td>河北</td>
Expand All @@ -176,7 +176,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/hebei/mobile.txt">🛰️组播</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/hebei/telecom.txt">🔗单播</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/hebei/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.07.27</td>
</tr>
<tr>
<td>黑龙江</td>
Expand All @@ -196,7 +196,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/henan/mobile.txt">🛰️组播</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/henan/telecom.txt">🔗单播</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/henan/telecom.txt">🛰️组播</a></td>
<td>2020.05.02</td>
<td>2025.07.01</td>
</tr>
<tr>
<td>湖北</td>
Expand Down Expand Up @@ -236,7 +236,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/jiangxi/mobile.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/jiangxi/telecom.txt">🔗单播</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/jiangxi/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.07.27</td>
</tr>
<tr>
<td>吉林</td>
Expand Down Expand Up @@ -356,7 +356,7 @@
<td><a href="https://chinaiptv.pages.dev/Multicast/xinjiang/mobile.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Unicast/xinjiang/telecom.txt">🌐暂无</a></td>
<td><a href="https://chinaiptv.pages.dev/Multicast/xinjiang/telecom.txt">🛰️组播</a></td>
<td>2020.02.27</td>
<td>2025.07.27</td>
</tr>
<tr>
<td>西藏</td>
Expand Down
39 changes: 34 additions & 5 deletions TV/sort_channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down Expand Up @@ -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 = ""
Expand Down
10 changes: 10 additions & 0 deletions TV/sources.txt
Original file line number Diff line number Diff line change
@@ -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

# 更多源可以继续添加...
21 changes: 10 additions & 11 deletions Unicast/anhui/mobile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion Unicast/sichuan/unicom.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down