Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rh:websockets] Add support for HTTP/HTTPS proxies #9625

Open
wants to merge 48 commits into
base: master
Choose a base branch
from

Conversation

coletdjnz
Copy link
Member

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Depends on #9578

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@coletdjnz coletdjnz added bug Bug that is not site-specific enhancement New feature or request networking core networking related labels Apr 6, 2024
@coletdjnz coletdjnz changed the title [rh:websockets] Add support for HTTP/HTTPS proxies for websockets [rh:websockets] Add support for HTTP/HTTPS proxies Apr 6, 2024
yt_dlp/networking/_websockets.py Fixed Show fixed Hide fixed
test/test_http_proxy.py Dismissed Show dismissed Hide dismissed
test/conftest.py Outdated Show resolved Hide resolved
yt_dlp/networking/_curlcffi.py Outdated Show resolved Hide resolved
Comment on lines +44 to +48
urllib3_supported = False
urllib3_version = tuple(int_or_none(x, default=0) for x in urllib3.__version__.split('.')) if urllib3 else None
if urllib3_version and urllib3_version >= (1, 26, 17):
urllib3_supported = True

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check should be moved to dependencies.py as we discussed on discord

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will create another PR for this - out of scope for this one

yt_dlp/networking/_helper.py Dismissed Show dismissed Hide dismissed
test/test_http_proxy.py Fixed Show fixed Hide fixed
coletdjnz and others added 2 commits June 3, 2024 11:20
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific enhancement New feature or request networking core networking related
Projects
Status: Release blocker
Development

Successfully merging this pull request may close these issues.

"ERROR: This request requires WebSocket support" when passing --proxy and websockets is installed
2 participants