From 43b1971778b9747880cce0cced19cb725f36d9c7 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Fri, 9 Aug 2024 16:21:07 +0800 Subject: [PATCH] Update iptv.py --- py/iptv.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/py/iptv.py b/py/iptv.py index bf9d506..ff1f849 100644 --- a/py/iptv.py +++ b/py/iptv.py @@ -382,10 +382,9 @@ for url in urls: if isinstance(item, dict): name = item.get('name') urlx = item.get('url') - # 如果url字段中包含',',并且不包含'udp'、'rtp'或':1111',则将urlx设置为"aaaaaaaa" - if ',' in urlx: - if 'udp' not in urlx and 'rtp' not in urlx and ':1111' not in urlx: - urlx = f"aaaaaaaa" + # 如果url字段中包含',',并且包含'udp'、'rtp'或':1111',则将urlx设置为"aaaaaaaa" + if ',' in urlx or 'udp' in urlx or 'rtp' in urlx or ':1111' in urlx: + urlx = f"aaaaaaaa" # 这里有几个条件判断,但被注释掉了,看起来是想根据urlx的内容来决定urld的值 # 判断urlx是否包含'http',如果包含,则直接使用urlx作为urld if 'http' in urlx: