From e7aa9c1b4179913a5238d5e267f5c0ce82768dd1 Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Wed, 27 Mar 2024 17:02:12 +0900 Subject: [PATCH] fix(YouTube Music/Video Information): apply fingerprint compatible with the wider version --- .../fingerprints/VideoLengthFingerprint.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/video/information/fingerprints/VideoLengthFingerprint.kt b/src/main/kotlin/app/revanced/patches/music/video/information/fingerprints/VideoLengthFingerprint.kt index a161dd725..b95634548 100644 --- a/src/main/kotlin/app/revanced/patches/music/video/information/fingerprints/VideoLengthFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/music/video/information/fingerprints/VideoLengthFingerprint.kt @@ -1,17 +1,16 @@ package app.revanced.patches.music.video.information.fingerprints -import app.revanced.patcher.fingerprint.MethodFingerprint +import app.revanced.util.fingerprint.MethodReferenceNameFingerprint import com.android.tools.smali.dexlib2.Opcode -object VideoLengthFingerprint : MethodFingerprint( +object VideoLengthFingerprint : MethodReferenceNameFingerprint( opcodes = listOf( Opcode.INVOKE_VIRTUAL, Opcode.MOVE_RESULT_WIDE, Opcode.INVOKE_VIRTUAL, Opcode.MOVE_RESULT_WIDE, Opcode.INVOKE_VIRTUAL, - Opcode.MOVE_RESULT_WIDE, - Opcode.INVOKE_VIRTUAL, - Opcode.MOVE_RESULT - ) + Opcode.MOVE_RESULT_WIDE + ), + reference = { "invalidate" } ) \ No newline at end of file