20 lines
713 B
Kotlin
20 lines
713 B
Kotlin
package app.revanced.patches.youtube.misc.fix.playback
|
|
|
|
import app.revanced.patcher.data.ResourceContext
|
|
import app.revanced.patcher.patch.ResourcePatch
|
|
import app.revanced.patcher.patch.annotation.Patch
|
|
import app.revanced.patches.shared.misc.mapping.ResourceMappingPatch
|
|
import app.revanced.patches.youtube.misc.settings.SettingsPatch
|
|
|
|
@Patch(dependencies = [SettingsPatch::class, ResourceMappingPatch::class])
|
|
object SpoofSignatureResourcePatch : ResourcePatch() {
|
|
internal var scrubbedPreviewThumbnailResourceId: Long = -1
|
|
|
|
override fun execute(context: ResourceContext) {
|
|
scrubbedPreviewThumbnailResourceId = ResourceMappingPatch[
|
|
"id",
|
|
"thumbnail",
|
|
]
|
|
}
|
|
}
|