From a273f6f73c057453e88a72825cb133a4bcdfebd8 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Tue, 14 Dec 2021 00:34:32 +0200 Subject: [PATCH] fix video toggle button appearing when in song mode --- plugins/video-toggle/front.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/video-toggle/front.js b/plugins/video-toggle/front.js index a4b75a96..6b216a6f 100644 --- a/plugins/video-toggle/front.js +++ b/plugins/video-toggle/front.js @@ -56,7 +56,7 @@ function changeDisplay(showVideo) { } function videoStarted() { - if (player.videoMode_) { + if (api.getPlayerResponse().videoDetails.musicVideoType !== 'MUSIC_VIDEO_TYPE_ATV') { // switch to high res thumbnail forceThumbnail($('#song-image img')); // show toggle button