From 8ad3f78865836fbe38a832ef6395c6eb8d0edbf2 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 17 Oct 2024 17:16:51 +0200 Subject: [PATCH] fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#716) --- .../youtube/patches/spoof/SpoofVideoStreamsPatch.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/spoof/SpoofVideoStreamsPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/spoof/SpoofVideoStreamsPatch.java index d3c96407..6b8a4265 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/spoof/SpoofVideoStreamsPatch.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/spoof/SpoofVideoStreamsPatch.java @@ -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) { Logger.printException(() -> "getStreamingData failure", ex); } @@ -154,13 +154,11 @@ public class SpoofVideoStreamsPatch { final int methodPost = 2; if (method == methodPost) { String path = uri.getPath(); - String clientNameQueryKey = "c"; - final boolean iosClient = "IOS".equals(uri.getQueryParameter(clientNameQueryKey)); - if (iosClient && path != null && path.contains("videoplayback")) { + if (path != null && path.contains("videoplayback")) { return null; } } - } catch (Exception ex) { + } catch (Exception ex) { Logger.printException(() -> "removeVideoPlaybackPostBody failure", ex); } }