1
mirror of https://github.com/revanced/revanced-integrations synced 2024-11-30 02:20:53 +01:00

fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#716)

This commit is contained in:
oSumAtrIX 2024-10-17 17:16:51 +02:00 committed by GitHub
parent 142de1ac93
commit 8ad3f78865
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -154,9 +154,7 @@ public class SpoofVideoStreamsPatch {
final int methodPost = 2; final int methodPost = 2;
if (method == methodPost) { if (method == methodPost) {
String path = uri.getPath(); String path = uri.getPath();
String clientNameQueryKey = "c"; if (path != null && path.contains("videoplayback")) {
final boolean iosClient = "IOS".equals(uri.getQueryParameter(clientNameQueryKey));
if (iosClient && path != null && path.contains("videoplayback")) {
return null; return null;
} }
} }