some fixes to the heart button

This commit is contained in:
vapormusic 2021-12-25 10:47:25 +07:00
parent 25221521cd
commit 3c92dc5e83
3 changed files with 41 additions and 7 deletions

View file

@ -1448,6 +1448,12 @@ const app = new Vue({
self.getLibrarySongsFull(true)
})
},
removeFromLibrary(kind,id) {
let self = this
this.mk.api.library.remove({[kind]: id }).then((data) => {
self.getLibrarySongsFull(true)
})
},
async loadYTLyrics() {
const track = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : '';
const artist = (this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.artistName ?? '' : '';