fix(YouTube Music/Replace cast button): sometimes a new API fetch occurs even though the music has not ended

This commit is contained in:
inotia00 2023-11-11 14:13:46 +09:00
parent 53d4baf5bc
commit 78024290e2
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ object ReplaceCastButtonPatch : BytecodePatch(
PlayerResponsePatch.injectPlaylistCall(
"$MUSIC_UTILS_PATH/CheckMusicVideoPatch;" +
"->" +
"playbackStart(Ljava/lang/String;Ljava/lang/String;I)V"
"playbackStart(Ljava/lang/String;Ljava/lang/String;IZ)V"
)
arrayOf(

View File

@ -31,7 +31,7 @@ object PlayerResponsePatch : BytecodePatch(
) {
insertMethod.addInstructions(
0, // move-result-object offset
"invoke-static {p$VIDEO_ID_PARAMETER, p$PLAYLIST_ID_PARAMETER, p$PLAYLIST_INDEX_PARAMETER}, $methodDescriptor"
"invoke-static {p$VIDEO_ID_PARAMETER, p$PLAYLIST_ID_PARAMETER, p$PLAYLIST_INDEX_PARAMETER, p$VIDEO_IS_OPENING_OR_PLAYING_PARAMETER}, $methodDescriptor"
)
}