NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

[YouTube] Update clients version and improve extraction of API key and client version of WEB and WEB_REMIX clients

Open AudricV opened this issue 3 years ago • 1 comments

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 the ANDROID client.

Detection of a player response redirection has been added on IOS and ANDROID clients 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 WEB client has been improved and requests to its JavaScript service worker and the one of the WEB_REMIX client have been removed, as they do not contain this information anymore. Extractions will now only use HTML pages.

Fixes TeamNewPipe/NewPipe#8713.

AudricV avatar Aug 10 '22 18:08 AudricV

~~Note: I didn't update the mocks, as I'd like to wait for #863 and #882 to be merged first, in order to not update multiple times mocks and/or get merge conflicts on them.~~

~~Do not run CI until these PRs are merged, it is unneeded as it will always fail due to missing updated mocks.~~

Reviews on the code changes can be made, even if this PR is marked as a draft.

AudricV avatar Aug 10 '22 18:08 AudricV

Hi guys, Does this fix ok ? please release ! :D

sseodate avatar Aug 17 '22 04:08 sseodate