fix(YouTube Music - Spoof client): Skip response encryption in OnesiePlayerRequest has also been applied to YouTube Music (Closes https://github.com/inotia00/ReVanced_Extended/issues/2819)

This commit is contained in:
inotia00
2025-03-07 09:48:09 +09:00
parent 1fca6d67b1
commit 7d834f253f
6 changed files with 38 additions and 39 deletions

View File

@ -106,18 +106,4 @@ public class BlockRequestPatch {
return initPlaybackRequestUri;
}
/**
* Injection point.
* Skip response encryption in OnesiePlayerRequest.
*/
public static boolean skipResponseEncryption(boolean original) {
Logger.printDebug(() -> "response Encryption: " + original);
if (BLOCK_REQUEST) {
return false;
}
return original;
}
}

View File

@ -62,6 +62,18 @@ public class SpoofStreamingDataPatch extends BlockRequestPatch {
return false;
}
/**
* Injection point.
* Skip response encryption in OnesiePlayerRequest.
*/
public static boolean skipResponseEncryption(boolean original) {
if (!SPOOF_STREAMING_DATA) {
return original;
}
return false;
}
/**
* Injection point.
*/