mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 06:39:16 +00:00
parent
3e35aa32c7
commit
c36513f1be
|
@ -46,7 +46,7 @@ dependencies = [
|
||||||
"certifi",
|
"certifi",
|
||||||
"mutagen",
|
"mutagen",
|
||||||
"pycryptodomex",
|
"pycryptodomex",
|
||||||
"requests>=2.31.0,<3",
|
"requests>=2.32.0,<3",
|
||||||
"urllib3>=1.26.17,<3",
|
"urllib3>=1.26.17,<3",
|
||||||
"websockets>=12.0",
|
"websockets>=12.0",
|
||||||
]
|
]
|
||||||
|
|
|
@ -21,8 +21,8 @@
|
||||||
if urllib3_version < (1, 26, 17):
|
if urllib3_version < (1, 26, 17):
|
||||||
raise ImportError('Only urllib3 >= 1.26.17 is supported')
|
raise ImportError('Only urllib3 >= 1.26.17 is supported')
|
||||||
|
|
||||||
if requests.__build__ < 0x023100:
|
if requests.__build__ < 0x023200:
|
||||||
raise ImportError('Only requests >= 2.31.0 is supported')
|
raise ImportError('Only requests >= 2.32.0 is supported')
|
||||||
|
|
||||||
import requests.adapters
|
import requests.adapters
|
||||||
import requests.utils
|
import requests.utils
|
||||||
|
@ -181,9 +181,13 @@ def proxy_manager_for(self, proxy, **proxy_kwargs):
|
||||||
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)
|
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)
|
||||||
|
|
||||||
def cert_verify(*args, **kwargs):
|
def cert_verify(*args, **kwargs):
|
||||||
# lean on SSLContext for cert verification
|
# Lean on our SSLContext for cert verification
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def _get_connection(self, request, *_, proxies=None, **__):
|
||||||
|
# Lean on our SSLContext for cert verification
|
||||||
|
return self.get_connection(request.url, proxies)
|
||||||
|
|
||||||
|
|
||||||
class RequestsSession(requests.sessions.Session):
|
class RequestsSession(requests.sessions.Session):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue