Update ddl.py

This commit is contained in:
ciccioxm3 2025-06-26 11:34:12 +02:00 committed by GitHub
parent 18fb8a1748
commit 90686b9467
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,7 @@ from StreamingCommunity.Util.headers import get_userAgent
# Variable # Variable
max_timeout = config_manager.get_int("REQUESTS", "timeout") max_timeout = config_manager.get_int("REQUESTS", "timeout")
REQUEST_VERIFY = config_manager.get_bool('REQUESTS', 'verify')
class VideoSource: class VideoSource:
@ -41,7 +42,8 @@ class VideoSource:
url=url, url=url,
headers=self.headers, headers=self.headers,
cookies=self.cookie, cookies=self.cookie,
timeout=max_timeout timeout=max_timeout,
verify=REQUEST_VERIFY
) )
response.raise_for_status() response.raise_for_status()
@ -77,4 +79,4 @@ class VideoSource:
logging.error("Failed to retrieve content from the URL.") logging.error("Failed to retrieve content from the URL.")
except Exception as e: except Exception as e:
logging.error(f"An error occurred while parsing the playlist: {e}") logging.error(f"An error occurred while parsing the playlist: {e}")