mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-10-31 08:42:58 +01:00
fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#716)
This commit is contained in:
parent
142de1ac93
commit
8ad3f78865
@ -134,7 +134,7 @@ public class SpoofVideoStreamsPatch {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger.printDebug(() -> "Not overriding streaming data (video stream is null): " + videoId);
|
Logger.printDebug(() -> "Not overriding streaming data (video stream is null): " + videoId);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Logger.printException(() -> "getStreamingData failure", ex);
|
Logger.printException(() -> "getStreamingData failure", ex);
|
||||||
}
|
}
|
||||||
@ -154,13 +154,11 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Logger.printException(() -> "removeVideoPlaybackPostBody failure", ex);
|
Logger.printException(() -> "removeVideoPlaybackPostBody failure", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user