fix the vids again

This commit is contained in:
vapormusic 2021-12-17 23:12:18 +07:00
parent 08874c70ea
commit 9b308c96f6
2 changed files with 10 additions and 7 deletions

View file

@ -23260,7 +23260,7 @@
}
if (null != (l = "string" != typeof (h = g.pathwayID) ? im("invalid steering manifest PATHWAY-PRIORITY list item data type") : /^[\w\-\.]+$/.test(h) ? void 0 : im("steering manifest contains invalid pathway ID: " + h)))
break;
if (g.hdcpLevel === "NONE"){
if (g.hdcpLevel === "NONE" && (g.url.includes("gr230"))){
n.push(g)}
}
return {

View file

@ -290,17 +290,20 @@ const app = new Vue({
MusicKit.getInstance().videoContainerElement = document.getElementById("apple-music-video-player")
document.getElementById("apple-music-video-player").addEventListener('timeupdate', function () {
self.lyriccurrenttime = this.currentTime;
})
this.mk.addEventListener(MusicKit.Events.playbackTimeDidChange, (a) => {
this.currentSongInfo = a
self.playerLCD.playbackDuration = (self.mk.currentPlaybackTime)
if (!self.playerReady){
self.playerReady = true
document.getElementById("apple-music-player").addEventListener('timeupdate', function () {
self.lyriccurrenttime = this.currentTime;
if (!self.playerReady) {
if (document.getElementById("apple-music-player")) {
self.playerReady = true;
document.getElementById("apple-music-player").addEventListener('timeupdate', function () {
self.lyriccurrenttime = this.currentTime;
})
}
)
}
// animated dot like AM - bad perf
})