added toggle for qq lyrics
This commit is contained in:
parent
54dad06e88
commit
399ca6c9a5
5 changed files with 12 additions and 0 deletions
|
@ -2952,6 +2952,7 @@ const app = new Vue({
|
|||
}
|
||||
},
|
||||
loadQQLyrics() {
|
||||
if (!app.cfg.lyrics.enable_qq) return;
|
||||
const track = encodeURIComponent((this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : '');
|
||||
const artist = encodeURIComponent((this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.artistName ?? '' : '');
|
||||
const time = encodeURIComponent((this.mk.nowPlayingItem != null) ? (Math.round((this.mk.nowPlayingItem.attributes["durationInMillis"] ?? -1000) / 1000) ?? -1) : -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue