diff --git a/py/iptv-ckeck.py b/py/iptv-ckeck.py index 58399df..846957c 100644 --- a/py/iptv-ckeck.py +++ b/py/iptv-ckeck.py @@ -12,7 +12,7 @@ output_file = 'valid_sources.txt' def is_link_valid(url): try: response = requests.head(url, allow_redirects=True, timeout=5) - return 200 <= response.status_code < 300 + return 200 <= response.status_code < 308 except requests.RequestException as e: print(f"请求错误: {e}") return False