From 25d311ba325b756289d133157c6d830f88c6a10d Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sun, 23 Jul 2023 15:34:49 +0900 Subject: [PATCH] fix: patch error --- .../utils/videoid/general/patch/VideoIdPatch.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt index 8b562b9885..758c9b9e07 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/videoid/general/patch/VideoIdPatch.kt @@ -76,11 +76,6 @@ class VideoIdPatch : BytecodePatch( } ?: return SeekFingerprint.toErrorResult() } ?: return PlayerInitFingerprint.toErrorResult() - /** - * Hook the methods which set the time - */ - videoTimeHook(INTEGRATIONS_CLASS_DESCRIPTOR, "setVideoTime") - /** * Set current video time */ @@ -90,6 +85,11 @@ class VideoIdPatch : BytecodePatch( .getMethod() as MutableMethod } ?: return PlayerControllerSetTimeReferenceFingerprint.toErrorResult() + /** + * Hook the methods which set the time + */ + videoTimeHook(INTEGRATIONS_CLASS_DESCRIPTOR, "setVideoTime") + /** * Set current video length */