Update 酒店源.py

This commit is contained in:
frxz751113
2024-08-30 01:58:36 +08:00
committed by GitHub
parent 057918dda0
commit 8a0644d44f
+3 -3
View File
@@ -125,10 +125,10 @@ for url in urls:
line = line.strip() line = line.strip()
if line: if line:
name, channel_url = line.split(',') name, channel_url = line.split(',')
urls = channel_url.split('/', 5) urls = channel_url.split('/', 3)
url_data = json_url.split('/', 5) url_data = json_url.split('/', 3)
if len(urls) >= 3: if len(urls) >= 3:
urld = (f"{urls[0]}//{url_data[1]}/{urls[2]}/{urls[3]}/{urls[4]}") urld = (f"{urls[0]}//{url_data[2]}/{urls[3]}}")
else: else:
urld = (f"{urls}") urld = (f"{urls}")
print(f"{name},{urld}") print(f"{name},{urld}")