Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 8ad3f78

Browse files
authored
fix(YouTube - Spoof video streams): Fix playback for Android VR by removing invalid body as well (#716)
1 parent 142de1a commit 8ad3f78

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

app/src/main/java/app/revanced/integrations/youtube/patches/spoof/SpoofVideoStreamsPatch.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static ByteBuffer getStreamingData(String videoId) {
134134
}
135135
}
136136

137-
Logger.printDebug(() -> "Not overriding streaming data (video stream is null): " + videoId);
137+
Logger.printDebug(() -> "Not overriding streaming data (video stream is null): " + videoId);
138138
} catch (Exception ex) {
139139
Logger.printException(() -> "getStreamingData failure", ex);
140140
}
@@ -154,13 +154,11 @@ public static byte[] removeVideoPlaybackPostBody(Uri uri, int method, byte[] pos
154154
final int methodPost = 2;
155155
if (method == methodPost) {
156156
String path = uri.getPath();
157-
String clientNameQueryKey = "c";
158-
final boolean iosClient = "IOS".equals(uri.getQueryParameter(clientNameQueryKey));
159-
if (iosClient && path != null && path.contains("videoplayback")) {
157+
if (path != null && path.contains("videoplayback")) {
160158
return null;
161159
}
162160
}
163-
} catch (Exception ex) {
161+
} catch (Exception ex) {
164162
Logger.printException(() -> "removeVideoPlaybackPostBody failure", ex);
165163
}
166164
}

0 commit comments

Comments
 (0)