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

Add Streamlink --twitch-api-header option #26

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

Conversation

AntonioMIN
Copy link

@AntonioMIN AntonioMIN commented Feb 20, 2023

--twitch-disable-ads option is seem like not working everytime. For this reason,
Added twitch_oauth_token to use --twitch-api-header option on Streamlink. Check this document for --twitch-api-header

If there is need to some change, please edit it.

streamlink_args.extend(["--twitch-api-header", "Authorization=OAuth " + self.twitch_oauth_token])
streamlink_args.extend(["--config", pwd + "/.streamlinkrc"])
streamlink_args.extend(["twitch.tv/" + self.username, self.quality, "-o", recorded_filename])
logging.info("streamlink args: %s", streamlink_args)
Copy link

Choose a reason for hiding this comment

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

After dig down twitch dev doc, I finally realize someone already done this 😆
I forked these changes, but remove this line to avoid logging OAuth token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants