Skip to content

Conversation

@bastimeyer
Copy link
Member

@bastimeyer bastimeyer commented Nov 11, 2022

--twitch-api-header was added in #4156 as an alternative to --http-header for setting generic/arbitrary headers on each Twitch API request, like authentication data for example (--twitch-api-header="Authorization=OAuth some-token"). It is therefore a useful plugin parameter, as it allows bypassing ads (to an extend). Adding a plugin parameter for generic key+value pairs on the access token API request via --twitch-access-token-param could be useful as well for the same reason.

Having --twitch-access-token-param allows setting different playerType API request parameter values for example. The default value of this is embed, which makes Streamlink retrieve an access token for Twitch's embeddable web player. site is another valid value.

In the past we've had to change this multiple times and reverted everything back again (see #3210). Adding this parameter allows for customizations made by users without having to modify the plugin itself. Should there be any new developments in terms of special Twitch players with access tokens without embedded ads, then this parameter is a way to quickly test and adapt to that, without having to publish new releases and having to potentially revert stuff.

@bastimeyer bastimeyer added the plugin enhancement A new feature for a working Plugin label Nov 11, 2022
@gravyboat gravyboat merged commit 57d88a5 into streamlink:master Nov 11, 2022
@bastimeyer bastimeyer deleted the plugins/twitch/add-access-token-param-cli-parameter branch November 11, 2022 17:40
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Nov 26, 2022
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Nov 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin enhancement A new feature for a working Plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants