mirror of
https://github.com/revanced/revanced-patches
synced 2025-01-17 02:17:36 +01:00
fix(youtube/video-ads): return empty ad list earlier
This commit is contained in:
parent
c64e7a6168
commit
a47ce9ba4f
@ -13,7 +13,8 @@ import org.jf.dexlib2.Opcode
|
|||||||
@Version("0.0.1")
|
@Version("0.0.1")
|
||||||
object LoadAdsFingerprint : MethodFingerprint(
|
object LoadAdsFingerprint : MethodFingerprint(
|
||||||
opcodes = listOf(Opcode.INVOKE_INTERFACE_RANGE),
|
opcodes = listOf(Opcode.INVOKE_INTERFACE_RANGE),
|
||||||
customFingerprint = { method ->
|
strings = listOf(
|
||||||
method.parameterTypes.size > 0 && method.parameterTypes.first().endsWith("InstreamAdBreak;")
|
"Received unsupported ad type, this should never happen.",
|
||||||
}
|
"AdBreakRenderer path ad playerResponse cannot be deserialized."
|
||||||
|
)
|
||||||
)
|
)
|
@ -50,7 +50,7 @@ class VideoAdsPatch : BytecodePatch(
|
|||||||
invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z
|
invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z
|
||||||
move-result v4
|
move-result v4
|
||||||
if-nez v4, :show_video_ads
|
if-nez v4, :show_video_ads
|
||||||
return-object v3
|
return-object v9
|
||||||
""",
|
""",
|
||||||
listOf(ExternalLabel("show_video_ads", instruction(insertIndex)))
|
listOf(ExternalLabel("show_video_ads", instruction(insertIndex)))
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user