From d037492a44e2456df6c00ae4c39635b9675a2063 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:20:59 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/酒店源.py b/py/酒店源.py index c5600dd..dd3f7cc 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -419,8 +419,8 @@ for url in urls: if 'udp' in urlx or 'rtp' in urlx: continue # 跳过包含'udp'或'rtp'的url # 使用正则表达式判断 IP - if re.search(r'182\.117\.136\.\d{1,3}\.\d{1,3}', urlx): - continue + if re.search(r'182\.117\.136\.\d{1,3}\:\d{1,5}|1\.1\.1\.\d{1,3}\:\d{1,5}|1\.1\.1\.\d{1,3}\:\d{1,5}', urlx): #(1,5)表示1到5位数 + continue # 如果urlx以'http'开头,则直接使用这个url if 'http' in urlx: urld = f"{urlx}"