From 9dd76816869b62a659472d00b799c7535ca4e497 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Wed, 4 Sep 2024 02:59:03 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E9=85=92=E5=BA=97=E6=BA=90.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/酒店源.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/酒店源.py b/py/酒店源.py index 93a8465..875a7ca 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -121,7 +121,7 @@ for url in urls: lines = json_data.split('\n') excluded_keywords = ['udp', 'rtp', '东森', '龙祥', 'CCTV', '卫视'] for line in lines: - if 'hls' in line and all(keyword not in line for keyword in excluded_keywords): + if 'hls' in line and all(not re.search(r'\b' + re.escape(keyword) + r'\b', line) for keyword in excluded_keywords): line = line.strip() if line: name, channel_url = line.split(',')