diff --git a/py/iptv.py b/py/iptv.py index bbac783..a09c022 100644 --- a/py/iptv.py +++ b/py/iptv.py @@ -127,7 +127,7 @@ for url in urls: if 'udp' in line or 'rtp' in line: continue # 如果行包含'udp'或'rtp',则跳过当前循环迭代 line = line.strip() - if line: + if line: name, channel_url = line.split(',') urls = channel_url.split('/', 3) url_data = json_url.split('/', 3)