From 3743f784d9fab4e8dae220d866557a99012a8e7f Mon Sep 17 00:00:00 2001 From: ciccioxm3 Date: Thu, 26 Jun 2025 11:37:33 +0200 Subject: [PATCH] Update mediapolisvod.py --- StreamingCommunity/Api/Player/mediapolisvod.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StreamingCommunity/Api/Player/mediapolisvod.py b/StreamingCommunity/Api/Player/mediapolisvod.py index 7aae8a2..76b0834 100644 --- a/StreamingCommunity/Api/Player/mediapolisvod.py +++ b/StreamingCommunity/Api/Player/mediapolisvod.py @@ -12,7 +12,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: @@ -29,7 +29,7 @@ class VideoSource: return "Error: Unable to determine video JSON URL" try: - response = httpx.get(video_url, headers=get_headers(), timeout=MAX_TIMEOUT) + response = httpx.get(video_url, headers=get_headers(), timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY) if response.status_code != 200: return f"Error: Failed to fetch video data (Status: {response.status_code})" @@ -50,7 +50,7 @@ class VideoSource: 'cont': element_key, 'output': '62', } - stream_response = httpx.get('https://mediapolisvod.rai.it/relinker/relinkerServlet.htm', params=params, headers=get_headers(), timeout=MAX_TIMEOUT) + stream_response = httpx.get('https://mediapolisvod.rai.it/relinker/relinkerServlet.htm', params=params, headers=get_headers(), timeout=MAX_TIMEOUT, verify=REQUEST_VERIFY) if stream_response.status_code != 200: return f"Error: Failed to fetch stream URL (Status: {stream_response.status_code})" @@ -61,4 +61,4 @@ class VideoSource: return m3u8_url except Exception as e: - return f"Error: {str(e)}" \ No newline at end of file + return f"Error: {str(e)}"