-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Twitch Drops #1269
Comments
This is a question we can't give a definite answer to... First off, you need to be logged in with your Twitch account by using the generated OAuth token. If you do this, Streamlink will include the OAuth http headers in all its requests (1, 2). That is basically all we can do. How Twitch is handling the drops is a completely different thing which is unknown to anyone. They have multiple ways of detecting unique viewers, but there is no API that can be used to say "hey, I'm a viewer of channel xyz, please give me ingame items". What they are probably doing is tracking http requests for each HLS playlist (or chunk), because these request require a signature connected to your OAuth token (and IP). Maybe they are also checking who's joined the streamer's IRC channel (or websocket based chat), or they are doing both. They could also disable drops for specific client-ids (registered applications using their API). That would applications like Streamlink not allow its users to receive drops, although the application is technically compatible. I have seen a few people on reddit who are using Streamlink and Streamlink Twitch GUI and who have received csgo drops, but I'm not sure if this is true. I, myself have never seen a drop of any game after almost 4 years now. Related threads in the Streamlink Twitch GUI repo from 2015 during the livestreamer era: |
I think for now I am going to mark this is out of scope and close it. There are a lot of unknowns and currently we are doing everything we realistically can (as noted by @bastimeyer, thanks for the detailed response!) to allow people to get drops. If more details emerge that wouldn't be problematic for us to implement please re-open this issue so we can start investigating. Thanks for the detailed issue as well as searching before creating it! |
Checklist
Description
Same question as in chrippa/livestreamer#1629
"Twitch Drops" are rewards randomly given to people watching live streams of games while logged on Twitch. Since Streamlink already supports Twitch authentication, a support for Twitch Drops would minimize inconvenience for Twitch Drop idlers, as using only the audio would minimize bandwidth usage.
I would expect to be able to receive a Twitch Drop (e.g. for The Elder Scrolls Legends) if I'm watching a stream in audio only mode with Streamlink. If this is not the case, what could be done to support Twitch drops? Otherwise, maybe this could be documented, at least with the Github issue right here.
Expected / Actual behavior
Expected behavior: Twitch drops are awarded to people using Streamlink.
Actual behavior: unknown.
I will test the Twitch drops in the afternoon, but the random aspect of Twitch drops makes it hard to test the support of Twitch drops. This question has not been asked or documented yet, based on my search for Github issues and Streamlink documentation.
Reproduction steps / Explicit stream URLs to test
%APPDATA%\streamlink\streamlinkrc
and paste the token inside it.streamlink twitch.tv/justalazygamer audio_only
Environment details
Operating system and version: Windows 10 64 bits
Streamlink and Python version: 0.8.1 and 3.6.1 respectively.
The text was updated successfully, but these errors were encountered: