Update 酒店源.py

This commit is contained in:
frxz751113
2024-09-04 02:59:03 +08:00
committed by GitHub
parent d52504bfe1
commit 9dd7681686
+1 -1
View File
@@ -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(',')