diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt index 6be7d654c..069dafebd 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt @@ -202,16 +202,20 @@ object VideoInformationPatch : BytecodePatch( playerConstructorMethod = it.mutableClass.methods.first { method -> MethodUtil.isConstructor(method) } - playerConstructorInsertIndex = playerConstructorMethod.indexOfFirstInstructionOrThrow { - opcode == Opcode.INVOKE_DIRECT && getReference()?.name == "" - } + 1 + playerConstructorInsertIndex = + playerConstructorMethod.indexOfFirstInstructionOrThrow { + opcode == Opcode.INVOKE_DIRECT && getReference()?.name == "" + } + 1 // hook the player controller for use through integrations onCreateHook(INTEGRATIONS_CLASS_DESCRIPTOR, "initialize") seekSourceEnumType = parameterTypes[1].toString() seekSourceMethodName = name - seekRelativeSourceMethodName = SeekRelativeFingerprint.alsoResolve(context, VideoEndFingerprint).mutableMethod.name + seekRelativeSourceMethodName = SeekRelativeFingerprint.alsoResolve( + context, + VideoEndFingerprint + ).mutableMethod.name // Create integrations interface methods. addSeekInterfaceMethods(