From 90686b94673c52e0a165e2f08e19cdf40d3fd208 Mon Sep 17 00:00:00 2001 From: ciccioxm3 Date: Thu, 26 Jun 2025 11:34:12 +0200 Subject: [PATCH] Update ddl.py --- StreamingCommunity/Api/Player/ddl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}")