From b14b47e908f0ede1fbd83d60f5fe2e3c2206a00c Mon Sep 17 00:00:00 2001 From: alantang <107459091+alantang1977@users.noreply.github.com> Date: Mon, 24 Mar 2025 23:28:12 +0800 Subject: [PATCH] Update iptv.py --- iptv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptv.py b/iptv.py index 5e523138..f1159d63 100644 --- a/iptv.py +++ b/iptv.py @@ -20,7 +20,7 @@ ipv6_pattern = re.compile(r'^http://\[([a-fA-F0-9:]+)\]') def fetch_streams_from_url(url): print(f"正在爬取网站源: {url}") try: - response = requests.get(url, timeout=10) + response = requests.get(url, timeout=20) response.encoding = 'utf-8' if response.status_code == 200: return response.text