fix(YouTube - Client spoof): Allow playback for links with timestamp (#582)

This commit is contained in:
Hoàng Gia Bảo 2024-03-04 13:52:18 +07:00 committed by GitHub
parent 36aa6c9aa8
commit eee3f352c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public class SpoofSignaturePatch {
try {
Logger.printDebug(() -> "Original protobuf parameter value: " + parameters);
if (!Settings.SPOOF_SIGNATURE.get()) {
if (parameters == null || !Settings.SPOOF_SIGNATURE.get()) {
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).
// Clips are 60 seconds or less in length, so no spoofing.
//noinspection AssignmentUsedAsCondition
if (useOriginalStoryboardRenderer = parameters.length() > 150 || containsAny(parameters, CLIPS_PARAMETERS)) {
if (useOriginalStoryboardRenderer = parameters.length() > 150 || parameters.startsWith(CLIPS_PARAMETERS)) {
return parameters;
}