From 0b07fc87195bc1837f395483df2efd415b4ecf57 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sat, 29 Apr 2023 03:28:42 +0900 Subject: [PATCH] fix(protobuf-spoof): subtitles are on top https://github.com/inotia00/ReVanced_Extended/issues/875 --- .../youtube/misc/protobufpoof/patch/ProtobufSpoofPatch.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/protobufpoof/patch/ProtobufSpoofPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/protobufpoof/patch/ProtobufSpoofPatch.kt index ea2cba785..6dc0b8e9d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/protobufpoof/patch/ProtobufSpoofPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/protobufpoof/patch/ProtobufSpoofPatch.kt @@ -18,7 +18,7 @@ import app.revanced.patches.shared.annotation.YouTubeCompatibility import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch import app.revanced.patches.youtube.misc.protobufpoof.fingerprints.* import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch -import app.revanced.patches.youtube.misc.videoid.legacy.patch.LegacyVideoIdPatch +import app.revanced.patches.youtube.misc.videoid.mainstream.patch.MainstreamVideoIdPatch import app.revanced.util.integrations.Constants.MISC_PATH @Patch @@ -26,7 +26,7 @@ import app.revanced.util.integrations.Constants.MISC_PATH @Description("Spoofs the protobuf to prevent playback issues.") @DependsOn( [ - LegacyVideoIdPatch::class, + MainstreamVideoIdPatch::class, PlayerTypeHookPatch::class, SettingsPatch::class ] @@ -83,7 +83,7 @@ class ProtobufSpoofPatch : BytecodePatch( ) ?: return SubtitleWindowFingerprint.toErrorResult() // Hook video id, required for subtitle fix. - LegacyVideoIdPatch.injectCall("$MISC_PATH/ProtobufSpoofPatch;->setCurrentVideoId(Ljava/lang/String;)V") + MainstreamVideoIdPatch.injectCall("$MISC_PATH/ProtobufSpoofPatch;->setCurrentVideoId(Ljava/lang/String;)V") /* * Add settings