mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-30 15:52:55 +01:00
fix(YouTube - Client spoof): Allow playback for links with timestamp (#582)
This commit is contained in:
parent
36aa6c9aa8
commit
eee3f352c5
@ -90,7 +90,7 @@ public class SpoofSignaturePatch {
|
|||||||
try {
|
try {
|
||||||
Logger.printDebug(() -> "Original protobuf parameter value: " + parameters);
|
Logger.printDebug(() -> "Original protobuf parameter value: " + parameters);
|
||||||
|
|
||||||
if (!Settings.SPOOF_SIGNATURE.get()) {
|
if (parameters == null || !Settings.SPOOF_SIGNATURE.get()) {
|
||||||
return parameters;
|
return parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,7 +98,7 @@ public class SpoofSignaturePatch {
|
|||||||
// For this reason, the player parameters of a clip are usually very long (150~300 characters).
|
// For this reason, the player parameters of a clip are usually very long (150~300 characters).
|
||||||
// Clips are 60 seconds or less in length, so no spoofing.
|
// Clips are 60 seconds or less in length, so no spoofing.
|
||||||
//noinspection AssignmentUsedAsCondition
|
//noinspection AssignmentUsedAsCondition
|
||||||
if (useOriginalStoryboardRenderer = parameters.length() > 150 || containsAny(parameters, CLIPS_PARAMETERS)) {
|
if (useOriginalStoryboardRenderer = parameters.length() > 150 || parameters.startsWith(CLIPS_PARAMETERS)) {
|
||||||
return parameters;
|
return parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user