Skip to content

Auth token seems to not work in python script #5874

Answered by bastimeyer
Shrezno asked this question in Q&A
Discussion options

You must be logged in to vote

streamlink.set_option('http-header', 'Authorization=OAuth {key.OAUTH}')

  1. The value you're trying to set is not an f-string
  2. http-header is not a valid session option. It's http-headers. Session options don't 1:1 map to CLI arguments. See the API docs:
    https://streamlink.github.io/api/session.html#streamlink.session.options.StreamlinkOptions

Setting Twitch auth headers doesn't guarantee that you won't get embedded ads.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Shrezno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants