Skip to content

Commit

Permalink
[CI] auto update yt_dlp to upstream commit db50f19d76c6870a5a13d0cab9…
Browse files Browse the repository at this point in the history
…287d684fd7449a
  • Loading branch information
github-actions[bot] committed Jun 2, 2024
1 parent 57a3f87 commit 0e8364f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions lib/yt_dlp/networking/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
if urllib3_version < (1, 26, 17):
raise ImportError('Only urllib3 >= 1.26.17 is supported')

if requests.__build__ < 0x023100:
raise ImportError('Only requests >= 2.31.0 is supported')
if requests.__build__ < 0x023202:
raise ImportError('Only requests >= 2.32.2 is supported')

import requests.adapters
import requests.utils
Expand Down Expand Up @@ -182,14 +182,9 @@ def proxy_manager_for(self, proxy, **proxy_kwargs):
return super().proxy_manager_for(proxy, **proxy_kwargs, **self._pm_args, **extra_kwargs)

# Skip `requests` internal verification; we use our own SSLContext
# requests 2.31.0+
def cert_verify(*args, **kwargs):
pass

# requests 2.31.0-2.32.1
def _get_connection(self, request, *_, proxies=None, **__):
return self.get_connection(request.url, proxies)

# requests 2.32.2+: Reimplementation without `_urllib3_request_context`
def get_connection_with_tls_context(self, request, verify, proxies=None, cert=None):
url = urllib3.util.parse_url(request.url).url
Expand Down
2 changes: 1 addition & 1 deletion lib/yt_dlp_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2e5a47da400b645aadbda6afd1156bd89c744f48
db50f19d76c6870a5a13d0cab9287d684fd7449a

0 comments on commit 0e8364f

Please sign in to comment.