Skip to content
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

[YouTube] Workaround 403 HTTP errors of ANDROID client streams #960

Merged

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented Oct 30, 2022

This PR tries to workaround the new detection of third-party clients by YouTube with the ANDROID InnerTube client, returning HTTP 403 errors for stream URLs got from it, by using player parameters of stories. This behavior is currently A/B tested in some countries (like the video replacement when not providing required payload parameters and user-agent) (with around a 15% reproducible rate), such as UK.

This issue needs to be investigated in the near future and affects other third-party clients which make use of this InnerTube client.

Fixes TeamNewPipe/NewPipe#9038.

…se codes

Using the player parameters used to get stories seems to fix the issue, which
affects currently only certain countries such as UK.

This is a workaround and should be fixed in a better way (by changing the
InnerTube additional client used for videos or finding what is now required in
Android player requests).
@AudricV AudricV added bug youtube service, https://www.youtube.com/ labels Oct 30, 2022
Copy link
Member

@FireMasterK FireMasterK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has been deployed in Piped for over a day with no issues!

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@Stypox Stypox merged commit a4db106 into TeamNewPipe:dev Oct 30, 2022
@AudricV AudricV deleted the yt-workaround-403-errors-android-client branch October 30, 2022 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[YouTube] 403 HTTP error when trying to play some videos
3 participants