From d834227367f69610438a1063464ed877868e89d1 Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Thu, 29 Aug 2024 18:01:35 +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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/py/酒店源.py b/py/酒店源.py index d61fe05..1d383b5 100644 --- a/py/酒店源.py +++ b/py/酒店源.py @@ -133,8 +133,7 @@ for url in urls: urls = channel_url.split('/', 3) url_data = json_url.split('/', 3) if len(urls) >= 3: - prefix = f"{urls[0].rstrip('/')}/" if not urls[0].endswith('/') else urls[0] - urld = f"{prefix}/{urls[3]}" + urld = (f"{url_data[0]}{urls[1]}{urls[2]}{urls[3]}") else: urld = (f"{urls[0]}//{url_data[2]}") print(f"{name},{urld}")