fix lyrics (yes it's good now)

This commit is contained in:
vapormusic 2021-12-21 12:04:41 +07:00
parent 092c33648b
commit eac054fd99

View file

@ -260,6 +260,7 @@ const app = new Vue({
this.mk.authorize() this.mk.authorize()
this.$forceUpdate() this.$forceUpdate()
this.mk.privateEnabled = true this.mk.privateEnabled = true
this.mk._services.timing.mode = 0
this.platform = ipcRenderer.sendSync('cider-platform'); this.platform = ipcRenderer.sendSync('cider-platform');
// Set profile name // Set profile name
this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "") this.chrome.userinfo = await this.mkapi("personalSocialProfile", false, "")
@ -304,7 +305,7 @@ const app = new Vue({
if (document.getElementById("apple-music-player")) { if (document.getElementById("apple-music-player")) {
self.playerReady = true; self.playerReady = true;
document.getElementById("apple-music-player").addEventListener('timeupdate', function () { document.getElementById("apple-music-player").addEventListener('timeupdate', function () {
self.lyriccurrenttime = this.currentTime; self.lyriccurrenttime = self.mk.currentPlaybackTime
}) })
} }
} }
@ -316,7 +317,6 @@ const app = new Vue({
self.$refs.queue.updateQueue(); self.$refs.queue.updateQueue();
} }
this.currentSongInfo = a this.currentSongInfo = a
self.lyriccurrenttime = 0
try { try {
a = a.item.attributes; a = a.item.attributes;
} catch (_) { } catch (_) {