diff --git a/StreamingCommunity/Api/Player/sweetpixel.py b/StreamingCommunity/Api/Player/sweetpixel.py index 1b2b02f..0954c18 100644 --- a/StreamingCommunity/Api/Player/sweetpixel.py +++ b/StreamingCommunity/Api/Player/sweetpixel.py @@ -14,7 +14,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: def __init__(self, full_url, episode_data, session_id, csrf_token): @@ -30,7 +30,8 @@ class VideoSource: cookies={"sessionId": session_id}, headers={"User-Agent": get_userAgent(), "csrf-token": csrf_token}, base_url=full_url, - timeout=MAX_TIMEOUT + timeout=MAX_TIMEOUT, + verify=REQUEST_VERIFY ) def get_playlist(self): @@ -46,4 +47,4 @@ class VideoSource: except Exception as e: logging.error(f"Error in new API system: {e}") - return None \ No newline at end of file + return None