Update iptv.py

This commit is contained in:
frxz751113
2024-08-09 19:53:44 +08:00
committed by GitHub
parent b509357152
commit 57c9ff7aa9
+1 -1
View File
@@ -123,7 +123,7 @@ for url in urls:
# 按行分割数据
lines = json_data.split('\n')
for line in lines:
if 'udp' not in line and 'rtp' not in line:
if 'm3u' in line and ('udp' not in line or 'rtp' not in line): #行中需包含m3u,但排除udp和trp
line = line.strip()
if line:
name, channel_url = line.split(',')