diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofSignaturePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofSignaturePatch.kt index 2f594c7aa..1d1b8bb20 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofSignaturePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/fix/playback/SpoofSignaturePatch.kt @@ -88,7 +88,7 @@ object SpoofSignaturePatch : BytecodePatch( ) // Hook the player parameters. - PlayerResponseMethodHookPatch + PlayerResponseMethodHookPatch.Hook.ProtoBufferParameter( + PlayerResponseMethodHookPatch += PlayerResponseMethodHookPatch.Hook.ProtoBufferParameter( "$INTEGRATIONS_CLASS_DESCRIPTOR->spoofParameter(Ljava/lang/String;)Ljava/lang/String;" ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/videoid/VideoIdPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/videoid/VideoIdPatch.kt index 57df0c97f..f72040747 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/videoid/VideoIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/videoid/VideoIdPatch.kt @@ -120,7 +120,7 @@ object VideoIdPatch : BytecodePatch( * @param methodDescriptor which method to call. Params have to be `Ljava/lang/String;` */ fun hookPlayerResponseVideoId(methodDescriptor: String) { - PlayerResponseMethodHookPatch + PlayerResponseMethodHookPatch.Hook.VideoId( + PlayerResponseMethodHookPatch += PlayerResponseMethodHookPatch.Hook.VideoId( methodDescriptor ) }