Skip to content

webbrowser.chromium: skip proxy on WS URL request #6130

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

Conversation

bastimeyer
Copy link
Member

This skips using http-session proxies (set via --http-proxy) when requesting Chromium's IPC websocket URL when using the webbrowser API.

See #6129 (reply in thread)

It does NOT forward any proxy settings to the launched Chromium process. This is still unsupported.


The following example acquires an integrity token using the local IP address, while making any regular HTTP requests using the set proxy.

$ streamlink --http-proxy socks5h://localhost:1920 --twitch-force-client-integrity --twitch-purge-client-integrity twitch.tv/gorgc best
[cli][info] Found matching plugin twitch for URL twitch.tv/gorgc
[plugins.twitch][info] Removing cached client-integrity token...
[plugins.twitch][info] Acquiring new client-integrity token...
[webbrowser.webbrowser][info] Launching web browser: /usr/bin/chromium (headless=True)
[cli][info] Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
[cli][info] Opening stream: 1080p60 (hls)
[cli][info] Starting player: /usr/bin/mpv
[plugins.twitch][info] Will skip ad segments
[plugins.twitch][info] Low latency streaming (HLS live edge: 2)
[plugins.twitch][info] Waiting for pre-roll ads to finish, be patient
[plugins.twitch][info] Detected advertisement break of 15 seconds
[stream.hls][info] Filtering out segments and pausing stream output
[plugins.twitch][info] This is not a low latency stream
[stream.hls][warning] Encountered a stream discontinuity. This is unsupported and will result in incoherent output data.
[stream.hls][info] Resuming stream output
[cli][info] Player closed
[cli][info] Stream ended
[cli][info] Closing currently open stream...

@bastimeyer bastimeyer merged commit 6c73099 into streamlink:master Aug 12, 2024
16 checks passed
@bastimeyer bastimeyer deleted the webbrowser/chromium/ignore-http-session-proxies branch August 12, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant