From 09e6abf56de72f3c71f205da1128502c253b3c18 Mon Sep 17 00:00:00 2001 From: IRLtools <122155359+IRLtools@users.noreply.github.com> Date: Fri, 17 May 2024 18:25:55 +0900 Subject: [PATCH 1/2] Update index.html The object path for video data changed, updated --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 8b85c64..b1dafbd 100644 --- a/index.html +++ b/index.html @@ -208,10 +208,10 @@ } function onAir() { - debug(`On air : ${player.playerInfo.videoData.title} by ${ - player.playerInfo.videoData.author + debug(`On air : ${player.v.videoData.title} by ${ + player.v.videoData.author } - Video Id => ${player.playerInfo.videoData.video_id} + Video Id => ${player.v.videoData.video_id} Queue position => ${player.getPlaylistIndex() + 1}/${ player.getPlaylist() ? player.getPlaylist().length : "null" } @@ -230,7 +230,7 @@ HideWhenStopped => ${hideWhenStopped} Controls => ${controls}`); - if (title) document.getElementById('info').innerHTML = `${player.playerInfo.videoData.title} ${player.playerInfo.videoData.author}`; + if (title) document.getElementById('info').innerHTML = `${player.v.videoData.title} ${player.v.videoData.author}`; player.playVideo(); From 4c8864f610cd286ed9e7a9bea4855f2234b8d577 Mon Sep 17 00:00:00 2001 From: IRLtools <122155359+IRLtools@users.noreply.github.com> Date: Wed, 19 Jun 2024 00:01:38 +0900 Subject: [PATCH 2/2] Update index.html Updated Youtube's new changes --- index.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index b1dafbd..3f3bd07 100644 --- a/index.html +++ b/index.html @@ -208,10 +208,13 @@ } function onAir() { - debug(`On air : ${player.v.videoData.title} by ${ - player.v.videoData.author + console.log(player.playerInfo.videoData) + + debug(`On air : ${player.playerInfo.videoData.title} by ${ + player.playerInfo.videoData.author } - Video Id => ${player.v.videoData.video_id} + + Video Id => ${player.playerInfo.videoData.video_id} Queue position => ${player.getPlaylistIndex() + 1}/${ player.getPlaylist() ? player.getPlaylist().length : "null" } @@ -230,7 +233,7 @@ HideWhenStopped => ${hideWhenStopped} Controls => ${controls}`); - if (title) document.getElementById('info').innerHTML = `${player.v.videoData.title} ${player.v.videoData.author}`; + if (title) document.getElementById('info').innerHTML = `${player.playerInfo.videoData.title} ${player.playerInfo.videoData.author}`; player.playVideo();