From a81ad3e481db476442dea22316297a5ac3978afa Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Wed, 15 May 2024 03:03:59 +0900 Subject: [PATCH] fix(YouTube/Return YouTube Dislike): dislike count sometimes not shown in Shorts https://github.com/inotia00/ReVanced_Extended/issues/1565 --- .../youtube/video/information/VideoInformationPatch.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt index deb181a0a..ce1fe7f70 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/information/VideoInformationPatch.kt @@ -113,9 +113,6 @@ object VideoInformationPatch : BytecodePatch( private lateinit var videoTimeConstructorMethod: MutableMethod private var videoTimeConstructorInsertIndex = 2 - private lateinit var videoTimeMethod: MutableMethod - private var videoTimeIndex = 1 - // Used by other patches. internal lateinit var speedSelectionInsertMethod: MutableMethod internal lateinit var videoEndMethod: MutableMethod @@ -265,6 +262,7 @@ object VideoInformationPatch : BytecodePatch( /** * Set current video id */ + VideoIdPatch.hookVideoId("$INTEGRATIONS_CLASS_DESCRIPTOR->setVideoId(Ljava/lang/String;)V") VideoIdPatch.hookPlayerResponseVideoId( "$INTEGRATIONS_CLASS_DESCRIPTOR->setPlayerResponseVideoId(Ljava/lang/String;Z)V") // Call before any other video id hooks,