add to library added to mediaitem-list-item

This commit is contained in:
booploops 2021-12-08 01:11:34 -08:00
parent 6a59de9b16
commit 0b5389a528
5 changed files with 40 additions and 15 deletions

View file

@ -606,7 +606,10 @@ const app = new Vue({
let self = this
let library = []
let downloaded = null;
if ((this.library.songs.downloadState == 2 || this.library.songs.downloadState == 1) && !force) {
if ((this.library.songs.downloadState == 2) && !force) {
return
}
if(this.library.songs.downloadState == 1) {
return
}
if (localStorage.getItem("librarySongs") != null) {
@ -824,6 +827,12 @@ const app = new Vue({
})
}
},
addToLibrary(id) {
let self = this
this.mk.addToLibrary(id).then((data)=>{
self.getLibrarySongsFull(true)
})
},
loadMXM() {
let attempt = 0;
const track = encodeURIComponent((this.mk.nowPlayingItem != null) ? this.mk.nowPlayingItem.title ?? '' : '');