Skip to content

plugins.twitch: disable headless mode #5758

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

Merged

Conversation

bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented Jan 4, 2024

Resolves #5600

This ignores the --webbrowser-headless config in the Twitch plugin and always forces headless to be False, because Twitch is able to detect Chromium's headless mode when forcing the acquirement of the client-integrity token. You can check this easily by setting an invalid OAuth token for example (--twitch-api-header="Authorization=OAuth invalid") or by modifying the plugin.

The CI tokens are currently not a requirement, but this can change at any time, and if they do and Streamlink has headless mode enabled by default (which is the case), then users are forced to update their configs or CLI arguments until we publish a new release, which is unnecessary. So let's set headless to False in the Twitch plugin now.

@bastimeyer bastimeyer added the plugin issue A Plugin does not work correctly label Jan 4, 2024
@bastimeyer bastimeyer merged commit 36a2af2 into streamlink:master Jan 4, 2024
@bastimeyer bastimeyer deleted the plugins/twitch/disable-headless branch January 4, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin issue A Plugin does not work correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

plugins.twitch: is_bad_bot=true in headless mode (forced integrity-token acquirement)
1 participant