fix(sponsorblock): video-id-hook should be applied last

This commit is contained in:
inotia00 2023-04-29 03:11:00 +09:00
parent b9921478a0
commit b76dfd8097

View File

@ -65,11 +65,6 @@ class SponsorBlockBytecodePatch : BytecodePatch(
)
}
/*
* Inject VideoIdPatch
*/
LegacyVideoIdPatch.injectCall("$INTEGRATIONS_PLAYER_CONTROLLER_CLASS_DESCRIPTOR->setCurrentVideoId(Ljava/lang/String;)V")
/*
* Seekbar drawing
@ -172,6 +167,11 @@ class SponsorBlockBytecodePatch : BytecodePatch(
}
} ?: return PlayerControllerFingerprint.toErrorResult()
/*
* Inject VideoIdPatch
*/
LegacyVideoIdPatch.injectCall("$INTEGRATIONS_PLAYER_CONTROLLER_CLASS_DESCRIPTOR->setCurrentVideoId(Ljava/lang/String;)V")
context.injectInit("FirstRun", "initializationSB")
context.updatePatchStatus("SponsorBlock")