-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
plugins.twitch: fix HLS multivariant errors #5591
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
plugins.twitch: fix HLS multivariant errors #5591
Conversation
I can test it out but need a little guidance if possible. I have streamlink installed via winget on my PC and via homebrew on my Macbook. What would be the simplest way to replace the necessary files with what you wrote so I can try it out? Ignore this if someone actually involved with streamlink development needs to test it |
High probability I did this wrong but here's what I got. At least the giant original error message is gone First attempt only with new
Second attempt with both
|
Just to make this clear, this fix is about error handling, not about making "primevideo" work when you don't have access. If you can access the channel on Twitch's site but not via Streamlink, then this requires different changes, but as said, I can't access it, so I can't fix this. Log outputs without the The test file doesn't belong there, as you can clearly see from the error message after you've copied the file there.
It's possible that in order to access these kind of streams that another access token parameter is required. |
My mistake, here's the output with the debug flag and the test file removed. I do have access btw, I'm watching the Twitch stream on my PC right now. This isn't trying to circumvent anything on my side.
|
I'm going to merge this PR now. Please open a new plugin issue with the |
Fixes #5590
I'd appreciate it if someone could test this where the content is actually available. It's blocked when I access it with my local German IP address, and it's also blocked with all the VPNs I've tried.
Btw, the geo-restriction could also be checked here:
https://github.com/streamlink/streamlink/blob/6.2.1/src/streamlink/plugins/twitch.py#L270
But I felt like checking on the HLS multivariant request is a better idea, since the current error handling isn't particularly great.