From da3e0f4205f1b1e8c8cce766a4719efba3a71299 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Sun, 11 Aug 2024 10:59:45 +0800 Subject: [PATCH] Update iptv-cv2-check.py --- py/iptv-cv2-check.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/py/iptv-cv2-check.py b/py/iptv-cv2-check.py index e86e635..1947514 100644 --- a/py/iptv-cv2-check.py +++ b/py/iptv-cv2-check.py @@ -282,9 +282,8 @@ def filter_lines(input_file, output_file): filtered_lines = [] for line in lines: #if ('hls' in line and 'm3u' in line) or ('tsfile' in line and 'm3u' in line): #行中包含m3u的同时还要包含hls或者tsfile - if '凤凰' in line or '东森' in line or '天映' in line or '酒店' in line or '龙祥' in line or '美亚' in line or '好莱坞' in line or '珠江' in line \ - or 'TVB' in line or '翡翠' in line or '明珠' in line or '广场舞' in line or '本港' in line or '动作' in line or '家庭' in line or '影迷' in line or '安徽卫视' in line or '辽宁卫视' in line \ - or 'CCTV3' in line or 'CCTV15' in line or 'CCTV1,' in line or 'CCTV6' in line or 'CCTV8' in line or '湖北卫视' in line or '湖南卫视' in line or '江苏卫视' in line: #仅提取港澳频道 + if '凤凰' in line or '东森' in line or '天映' in line or '酒店' in line or '龙祥' in line or '美亚' in line or '好莱坞' in line or '珠江' in line or 'TVB' in line or '翡翠' in line \ + or '明珠' in line or '广场舞' in line or '本港' in line or '动作' in line or '家庭' in line or '影迷' in line or '剧场' in line or '电影' in line or '影院' in line: #仅提取港澳频道 if 'udp' not in line and 'rtp' not in line and 'AAAA' not in line and 'AAA' not in line: # 排除组播地址及央卫 filtered_lines.append(line) with open(output_file, 'w', encoding='utf-8') as output_file: