[YouTube] Update clients version and improve extraction of API key and client version of WEB client #890
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.
This PR fixes the replacement of the player response of a requested video by a one saying that
This content is not available on this app, by adding the new required parameter,androidSdkVersion, for which the value sent is the one of the Android version we use on requests of theANDROIDclient.Detection of a player response redirection has been added on
IOSandANDROIDclients to avoid this behavior in the future.Client versions have been updated to their latest version and more parameters have been added on requests of the clients quoted above.
Extraction of InnerTube API key and client version of the
WEBclient from HTML page has been improvedand requests to its JavaScript service worker and the one of the(seems to be not the case everywhere, so these changes have been reverted).WEB_REMIXclient have been removed, as they do not contain this information anymoreExtractions will now only use HTML pages.Fixes TeamNewPipe/NewPipe#8713.