mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-07-19 00:20:00 +00:00
Update ddl.py
This commit is contained in:
parent
18fb8a1748
commit
90686b9467
@ -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}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user