plugins.pluzz: refactor, upd API URL, fix schemas #6048
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
update_qsd()
callsResolves #6047
@uNouss please check if something's not working correctly that's not covered by the test URLs
https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#pull-request-feedback
The error message when being geo-blocked isn't ideal, but I don't care...
The new API response contains two different token URL for getting the HLS/DASH stream URLs,
dai
andakamai
. Thedai
one didn't seem to work, and the regular TV live streams (didn't check anything else) were usingakamai
, so I went with that. No idea if a fallback todai
might be required in the future. For now it's simply ignored...Also probably worth mentioning is that the website requires a login, because the initial JSON payload with the video-ID has this property set:
"isLoginRequired": true
. Their API doesn't seem to care though.