diff --git a/py/iptv-ckeck.py b/py/iptv-ckeck.py index 2080b38..87db9fc 100644 --- a/py/iptv-ckeck.py +++ b/py/iptv-ckeck.py @@ -10,7 +10,7 @@ def is_link_valid(url): try: response = requests.head(url, allow_redirects=True, timeout=5) # 检查HTTP状态码是否表示成功 - return 200 <= response.status_code < 300 + return 200 <= response.status_code < 308 except requests.RequestException as e: # 打印错误信息,但继续执行 print(f"请求错误: {e}")