local backend

This commit is contained in:
vapormusic 2022-05-14 11:19:04 +07:00
parent 0d9236a4ad
commit 0b57e22e55
3 changed files with 122 additions and 7 deletions

View file

@ -117,6 +117,7 @@ const app = new Vue({
displayListing: [],
downloadState: 0 // 0 = not started, 1 = in progress, 2 = complete, 3 = empty library
},
localsongs : []
},
playlists: {
listing: [],
@ -705,9 +706,6 @@ const app = new Vue({
// Set mk.volume to -1 (setting to 0 wont work, so temp solution setting to -1)
this.mk.volume = -1;
}
// ipcRenderer.invoke('getStoreValue', 'audio.volume').then((value) => {
// self.mk.volume = value
// })
// load cached library
let librarySongs = await CiderCache.getCache("library-songs")
@ -831,6 +829,9 @@ const app = new Vue({
userid: user.id
}));
}
ipcRenderer.on('getUpdatedLocalList', (event,data) => {
console.log("cider-local",data);
this.library.localsongs = data;
})
ipcRenderer.on('SoundCheckTag', (event, tag) => {