Update iptv-cv2-check.py

This commit is contained in:
frxz751113
2024-08-10 04:49:59 +08:00
committed by GitHub
parent d08c3817b0
commit a24db79e59
+1 -1
View File
@@ -126,7 +126,7 @@ for url in urls:
# 按行分割数据 # 按行分割数据
lines = json_data.split('\n') lines = json_data.split('\n')
for line in lines: for line in lines:
if 'hls' in line and ('udp' not in line or 'rtp' not in line): #行中需包含m3u,但排除包含有udp和trp的行 if 'hls' in line and ('udp' not in line or 'rtp' not in line): #行中需包含hls,但排除包含有udp和trp的行
line = line.strip() line = line.strip()
if line: if line:
name, channel_url = line.split(',') name, channel_url = line.split(',')