fix(YouTube - Spoof video streams): Add "Allow Android VR AV1" setting (#6071)

This commit is contained in:
LisoUseInAIKyrios 2025-10-07 19:15:37 +04:00 committed by GitHub
parent fe16433f20
commit f03256c471
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 76 additions and 64 deletions

View file

@ -19,6 +19,14 @@ import app.revanced.extension.shared.spoof.requests.StreamingDataRequest;
@SuppressWarnings("unused")
public class SpoofVideoStreamsPatch {
public static final class AudioStreamLanguageOverrideAvailability implements Setting.Availability {
@Override
public boolean isAvailable() {
return BaseSettings.SPOOF_VIDEO_STREAMS.get() && !preferredClient.useAuth;
}
}
/**
* Domain used for internet connectivity verification.
* It has an empty response body and is only used to check for a 204 response code.
@ -321,11 +329,4 @@ public class SpoofVideoStreamsPatch {
return videoFormat;
}
public static final class AudioStreamLanguageOverrideAvailability implements Setting.Availability {
@Override
public boolean isAvailable() {
return BaseSettings.SPOOF_VIDEO_STREAMS.get() && !preferredClient.useAuth;
}
}
}