Only use android formats when the video id in the response is correct #3719
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.
Only use android formats when the video id in the response is correct
Pull Request Type
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.