plugins.okru: canonicalize mobile URLs #6444
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.
Fixes #6443
@leomani51214
https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#pull-request-feedback
Their mobile site sometimes returns a different HTML response which the plugin can't handle. This varying response seems to be similar to the data which is covered by the plugin's logic for their main site, but I don't think it's worth handling this case and refactoring the plugin because of that. Requesting the same video ID on their main site seems to be working, so I instead removed all logic for the mobile site and made the plugin translate mobile input URLs to URLs for their main site.
I however don't know if this solution works reliably, not just for the input URL of #6443. So @leomani51214, since I'm not familar with okru, please go ahead and test the changes of this PR and see if any other live streams are not working because of these changes. Thank you.