From 57c9ff7aa9d8476364ae36bff86a510fe45a9bae Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Fri, 9 Aug 2024 19:53:44 +0800 Subject: [PATCH] Update iptv.py --- py/iptv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/iptv.py b/py/iptv.py index 044b104..e8f9d46 100644 --- a/py/iptv.py +++ b/py/iptv.py @@ -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(',')