fix(YouTube/Return YouTube Dislike): dislike count sometimes not shown in Shorts https://github.com/inotia00/ReVanced_Extended/issues/1565

This commit is contained in:
inotia00
2024-05-15 03:03:59 +09:00
parent 24cc5e4808
commit a81ad3e481

View File

@ -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,