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}")