fix(youtube/video-information): use correct compatibility annotation
This commit is contained in:
parent
d8b849f9c0
commit
506b1345ab
|
@ -10,4 +10,4 @@ import app.revanced.patcher.annotation.Package
|
|||
)
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
internal annotation class PlayerControllerCompatibility
|
||||
internal annotation class VideoInformationCompatibility
|
|
@ -5,9 +5,10 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
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")
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object CreateVideoPlayerSeekbarFingerprint : MethodFingerprint(
|
||||
"V",
|
||||
|
|
|
@ -5,11 +5,11 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
|
||||
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
|
||||
import org.jf.dexlib2.Opcode
|
||||
|
||||
@Name("player-controller-set-time-reference-fingerprint")
|
||||
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object PlayerControllerSetTimeReferenceFingerprint : MethodFingerprint(
|
||||
opcodes = listOf(Opcode.INVOKE_DIRECT_RANGE, Opcode.IGET_OBJECT),
|
||||
|
|
|
@ -5,10 +5,10 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
|
||||
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
|
||||
|
||||
@Name("player-init-fingerprint")
|
||||
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object PlayerInitFingerprint : MethodFingerprint(
|
||||
strings = listOf(
|
||||
|
|
|
@ -5,10 +5,10 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
|
||||
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
|
||||
|
||||
@Name("seek-fingerprint")
|
||||
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object SeekFingerprint : MethodFingerprint(
|
||||
strings = listOf("Attempting to seek during an ad")
|
||||
|
|
|
@ -5,11 +5,11 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
|
||||
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
|
||||
import org.jf.dexlib2.Opcode
|
||||
|
||||
@Name("video-length-fingerprint")
|
||||
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object VideoLengthFingerprint : MethodFingerprint(
|
||||
opcodes = listOf(
|
||||
|
|
|
@ -5,9 +5,10 @@ import app.revanced.patcher.annotation.Version
|
|||
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import app.revanced.patches.youtube.layout.sponsorblock.annotations.SponsorBlockCompatibility
|
||||
import app.revanced.patches.youtube.misc.video.information.annotation.VideoInformationCompatibility
|
||||
|
||||
@Name("video-time-fingerprint")
|
||||
@SponsorBlockCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
object VideoTimeFingerprint : MethodFingerprint(
|
||||
strings = listOf("MedialibPlayerTimeInfo{currentPositionMillis=")
|
||||
|
|
|
@ -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.Companion.toMutable
|
||||
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 org.jf.dexlib2.AccessFlags
|
||||
import org.jf.dexlib2.builder.MutableMethodImplementation
|
||||
|
@ -29,7 +29,7 @@ import org.jf.dexlib2.util.MethodUtil
|
|||
|
||||
@Name("video-information")
|
||||
@Description("Hooks YouTube to get information about the current playing video.")
|
||||
@RememberPlaybackSpeedCompatibility
|
||||
@VideoInformationCompatibility
|
||||
@Version("0.0.1")
|
||||
@DependsOn([IntegrationsPatch::class])
|
||||
class VideoInformationPatch : BytecodePatch(
|
||||
|
|
Loading…
Reference in a new issue