diff --git a/StreamingCommunity/Api/Player/ddl.py b/StreamingCommunity/Api/Player/ddl.py index 0f3b67a..00761e3 100644 --- a/StreamingCommunity/Api/Player/ddl.py +++ b/StreamingCommunity/Api/Player/ddl.py @@ -15,6 +15,7 @@ from StreamingCommunity.Util.headers import get_userAgent # Variable max_timeout = config_manager.get_int("REQUESTS", "timeout") +REQUEST_VERIFY = config_manager.get_bool('REQUESTS', 'verify') class VideoSource: @@ -41,7 +42,8 @@ class VideoSource: url=url, headers=self.headers, cookies=self.cookie, - timeout=max_timeout + timeout=max_timeout, + verify=REQUEST_VERIFY ) response.raise_for_status() @@ -77,4 +79,4 @@ class VideoSource: logging.error("Failed to retrieve content from the URL.") except Exception as e: - logging.error(f"An error occurred while parsing the playlist: {e}") \ No newline at end of file + logging.error(f"An error occurred while parsing the playlist: {e}")