From 1b81dca232be6299518c4f461c2d1982b5a00787 Mon Sep 17 00:00:00 2001 From: ciccioxm3 Date: Thu, 26 Jun 2025 11:39:10 +0200 Subject: [PATCH] Update supervideo.py --- StreamingCommunity/Api/Player/supervideo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/StreamingCommunity/Api/Player/supervideo.py b/StreamingCommunity/Api/Player/supervideo.py index 32aba79..561a68c 100644 --- a/StreamingCommunity/Api/Player/supervideo.py +++ b/StreamingCommunity/Api/Player/supervideo.py @@ -17,6 +17,7 @@ from StreamingCommunity.Util.headers import get_headers # Variable MAX_TIMEOUT = config_manager.get_int("REQUESTS", "timeout") +REQUEST_VERIFY = config_manager.get_bool('REQUESTS', 'verify') class VideoSource: @@ -41,7 +42,7 @@ class VideoSource: - str: The response content if successful, None otherwise. """ try: - response = requests.get(url, headers=self.headers, timeout=MAX_TIMEOUT, impersonate="chrome110") + response = requests.get(url, headers=self.headers, timeout=MAX_TIMEOUT, impersonate="chrome110", verify=REQUEST_VERIFY) if response.status_code >= 400: logging.error(f"Request failed with status code: {response.status_code}") return None @@ -161,4 +162,4 @@ class VideoSource: except Exception as e: logging.error(f"An error occurred: {e}") - return None \ No newline at end of file + return None