fix(YouTube - Client spoof): adjust settings text (#3035)

This commit is contained in:
LisoUseInAIKyrios 2023-09-26 22:27:12 +04:00 committed by GitHub
parent f5ff92e1e8
commit 59a2e9617f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ object SpoofSignaturePatch : BytecodePatch(
+ "Side effects include:\\n" + "Side effects include:\\n"
+ "• Enhanced bitrate is not available\\n" + "• Enhanced bitrate is not available\\n"
+ "• Videos cannot be downloaded" + "• Videos cannot be downloaded"
+ "• No seekbar thumbnails for paid videos"
), ),
StringResource( StringResource(
"revanced_spoof_signature_verification_enabled_summary_off", "revanced_spoof_signature_verification_enabled_summary_off",
@ -78,7 +79,7 @@ object SpoofSignaturePatch : BytecodePatch(
), ),
StringResource( StringResource(
"revanced_spoof_signature_in_feed_enabled_summary_off", "revanced_spoof_signature_in_feed_enabled_summary_off",
"App signature not spoofed for feed videos\n\n" "App signature not spoofed for feed videos\\n\\n"
+ "Feed videos will play for less than 1 minute before encountering playback issues" + "Feed videos will play for less than 1 minute before encountering playback issues"
) )
) )
@ -89,9 +90,8 @@ object SpoofSignaturePatch : BytecodePatch(
// Hook the player parameters. // Hook the player parameters.
PlayerResponseMethodHookPatch.injectProtoBufferHook("$INTEGRATIONS_CLASS_DESCRIPTOR->spoofParameter(Ljava/lang/String;)Ljava/lang/String;") PlayerResponseMethodHookPatch.injectProtoBufferHook("$INTEGRATIONS_CLASS_DESCRIPTOR->spoofParameter(Ljava/lang/String;)Ljava/lang/String;")
// Force the seekbar thumbnails to show up. // Force the seekbar time and chapters to always show up.
// This is only required to show the seekbar time and chapters // This is used only if the storyboard spec fetch fails, or when viewing paid videos.
// if the storyboard spec fetch fails.
StoryboardThumbnailParentFingerprint.result?.classDef?.let { classDef -> StoryboardThumbnailParentFingerprint.result?.classDef?.let { classDef ->
StoryboardThumbnailFingerprint.also { StoryboardThumbnailFingerprint.also {
it.resolve( it.resolve(