Skip to content

Commit

Permalink
fix(YouTube/Player components): Disable player popup panels setting…
Browse files Browse the repository at this point in the history
… disables the engagement panel in Mix playlists on certain YouTube version
  • Loading branch information
inotia00 committed Sep 23, 2024
1 parent 1cf3c6d commit 6d48ade
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,17 @@ internal object StartVideoInformerFingerprint : MethodFingerprint(
Opcode.INVOKE_INTERFACE,
Opcode.RETURN_VOID
),
strings = listOf("pc")
strings = listOf("pc"),
customFingerprint = custom@{ methodDef, _ ->
if (methodDef.implementation == null)
return@custom false

methodDef.implementation!!.instructions
.withIndex()
.filter { (_, instruction) ->
instruction.opcode == Opcode.CONST_STRING
}
.map { (index, _) -> index }
.size == 1
}
)

0 comments on commit 6d48ade

Please sign in to comment.