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

Commit

Permalink
fix(YouTube - Spoof video streams): Fix playback for Android VR by re…
Browse files Browse the repository at this point in the history
…moving invalid body as well (#716)
  • Loading branch information
oSumAtrIX authored Oct 17, 2024
1 parent 142de1a commit 8ad3f78
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static ByteBuffer getStreamingData(String videoId) {
}
}

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);
}
Expand All @@ -154,13 +154,11 @@ public static byte[] removeVideoPlaybackPostBody(Uri uri, int method, byte[] pos
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);
}
}
Expand Down

0 comments on commit 8ad3f78

Please sign in to comment.