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

Only use android formats when the video id in the response is correct #3719

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

absidue
Copy link
Member

@absidue absidue commented Jul 2, 2023

Only use android formats when the video id in the response is correct

Pull Request Type

  • Other - Extra checks

Related issue

Follow up to #3715

Description

Sometimes when YouTube detects a third party client or has applied an IP-ratelimit, they replace the response with a different video id. Here are the issues about it in the NewPipe and Piped repositories:
TeamNewPipe/NewPipe#8713
TeamPiped/Piped#2487

This pull request adds a check to detect that, just in case it happens.

Testing

Doesn't change any behaviour at the moment, so feel free to test but you shouldn't notice anything different at the moment.

@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 2, 2023
@FreeTubeBot FreeTubeBot enabled auto-merge (squash) July 2, 2023 13:25
@FreeTubeBot FreeTubeBot merged commit 1ba0865 into FreeTubeApp:development Jul 3, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Jul 3, 2023
@absidue absidue deleted the detect-wrong-video-id branch July 3, 2023 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants