Skip to content

Commit

Permalink
fix: Unofficial support for 19.41.39
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Oct 18, 2024
1 parent e5aa8aa commit 483f948
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import app.revanced.patches.youtube.misc.playertype.PlayerTypeHookPatch
import app.revanced.patches.youtube.video.playerresponse.PlayerResponseMethodHookPatch
import app.revanced.patches.youtube.video.videoid.fingerprint.VideoIdBackgroundPlayFingerprint
import app.revanced.patches.youtube.video.videoid.fingerprint.VideoIdFingerprint
import app.revanced.patches.youtube.video.videoid.fingerprint.VideoIdParentFingerprint
import app.revanced.util.alsoResolve
import app.revanced.util.getReference
import app.revanced.util.indexOfFirstInstruction
import app.revanced.util.resultOrThrow
Expand All @@ -26,7 +24,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
)
object VideoIdPatch : BytecodePatch(
setOf(
VideoIdParentFingerprint,
VideoIdFingerprint,
VideoIdBackgroundPlayFingerprint,
)
) {
Expand All @@ -40,7 +38,7 @@ object VideoIdPatch : BytecodePatch(

override fun execute(context: BytecodeContext) {

VideoIdFingerprint.alsoResolve(context, VideoIdParentFingerprint).mutableMethod.apply {
VideoIdFingerprint.resultOrThrow().mutableMethod.apply {
videoIdMethod = this
val index = indexOfPlayerResponseModelString()
videoIdRegister = getInstruction<OneRegisterInstruction>(index + 1).registerA
Expand Down

This file was deleted.

0 comments on commit 483f948

Please sign in to comment.