fix(youtube/video-information): use correct compatibility annotation

This commit is contained in:
oSumAtrIX 2022-11-05 22:00:37 +01:00
parent 743df2353e
commit b42e04884b
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
8 changed files with 15 additions and 13 deletions

View file

@ -10,4 +10,4 @@ import app.revanced.patcher.annotation.Package
) )
@Target(AnnotationTarget.CLASS) @Target(AnnotationTarget.CLASS)
@Retention(AnnotationRetention.RUNTIME) @Retention(AnnotationRetention.RUNTIME)
internal annotation class PlayerControllerCompatibility internal annotation class VideoInformationCompatibility

View file

@ -5,9 +5,10 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
@Name("create-video-player-seekbar-fingerprint") @Name("create-video-player-seekbar-fingerprint")
@SponsorBlockCompatibility @VideoInformationCompatibility
@Version("0.0.1") @Version("0.0.1")
object CreateVideoPlayerSeekbarFingerprint : MethodFingerprint( object CreateVideoPlayerSeekbarFingerprint : MethodFingerprint(
"V", "V",

View file

@ -5,11 +5,11 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
@Name("player-controller-set-time-reference-fingerprint") @Name("player-controller-set-time-reference-fingerprint")
@VideoInformationCompatibility
@SponsorBlockCompatibility
@Version("0.0.1") @Version("0.0.1")
object PlayerControllerSetTimeReferenceFingerprint : MethodFingerprint( object PlayerControllerSetTimeReferenceFingerprint : MethodFingerprint(
opcodes = listOf(Opcode.INVOKE_DIRECT_RANGE, Opcode.IGET_OBJECT), opcodes = listOf(Opcode.INVOKE_DIRECT_RANGE, Opcode.IGET_OBJECT),

View file

@ -5,10 +5,10 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
@Name("player-init-fingerprint") @Name("player-init-fingerprint")
@VideoInformationCompatibility
@SponsorBlockCompatibility
@Version("0.0.1") @Version("0.0.1")
object PlayerInitFingerprint : MethodFingerprint( object PlayerInitFingerprint : MethodFingerprint(
strings = listOf( strings = listOf(

View file

@ -5,10 +5,10 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
@Name("seek-fingerprint") @Name("seek-fingerprint")
@VideoInformationCompatibility
@SponsorBlockCompatibility
@Version("0.0.1") @Version("0.0.1")
object SeekFingerprint : MethodFingerprint( object SeekFingerprint : MethodFingerprint(
strings = listOf("Attempting to seek during an ad") strings = listOf("Attempting to seek during an ad")

View file

@ -5,11 +5,11 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
import org.jf.dexlib2.Opcode import org.jf.dexlib2.Opcode
@Name("video-length-fingerprint") @Name("video-length-fingerprint")
@VideoInformationCompatibility
@SponsorBlockCompatibility
@Version("0.0.1") @Version("0.0.1")
object VideoLengthFingerprint : MethodFingerprint( object VideoLengthFingerprint : MethodFingerprint(
opcodes = listOf( opcodes = listOf(

View file

@ -5,9 +5,10 @@ import app.revanced.patcher.annotation.Version
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
@Name("video-time-fingerprint") @Name("video-time-fingerprint")
@SponsorBlockCompatibility @VideoInformationCompatibility
@Version("0.0.1") @Version("0.0.1")
object VideoTimeFingerprint : MethodFingerprint( object VideoTimeFingerprint : MethodFingerprint(
strings = listOf("MedialibPlayerTimeInfo{currentPositionMillis=") strings = listOf("MedialibPlayerTimeInfo{currentPositionMillis=")

View file

@ -18,7 +18,7 @@ import app.revanced.patcher.patch.annotations.DependsOn
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod.Companion.toMutable
import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
import app.revanced.patches.youtube.misc.video.speed.remember.annotation.RememberPlaybackSpeedCompatibility import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
import app.revanced.patches.youtube.misc.video.information.fingerprints.* import app.revanced.patches.youtube.misc.video.information.fingerprints.*
import org.jf.dexlib2.AccessFlags import org.jf.dexlib2.AccessFlags
import org.jf.dexlib2.builder.MutableMethodImplementation import org.jf.dexlib2.builder.MutableMethodImplementation
@ -29,7 +29,7 @@ import org.jf.dexlib2.util.MethodUtil
@Name("video-information") @Name("video-information")
@Description("Hooks YouTube to get information about the current playing video.") @Description("Hooks YouTube to get information about the current playing video.")
@RememberPlaybackSpeedCompatibility @VideoInformationCompatibility
@Version("0.0.1") @Version("0.0.1")
@DependsOn([IntegrationsPatch::class]) @DependsOn([IntegrationsPatch::class])
class VideoInformationPatch : BytecodePatch( class VideoInformationPatch : BytecodePatch(