Created AddToPlaylist Modal

This commit is contained in:
Shiny Nematoda 2023-07-16 10:48:52 +00:00
parent 0144f1ee4e
commit d0245c273e
10 changed files with 565 additions and 457 deletions

View file

@ -42,7 +42,7 @@ export const useData = defineStore('data', () => {
async function play(song) {
if (song.offlineUri) {
state.art = song.thumbnail;
player.state.duration = song.duration
player.state.duration = song.duration;
for (let i of ['title', 'artist', 'artistUrl', 'url']) state[i] = song[i];
window.audioPlayer.load(song.offlineUri);
} else await getSong(song.url);
@ -150,6 +150,7 @@ export const usePlayer = defineStore('player', () => {
playlist: false,
lyrics: false,
info: false,
add: false,
vol: store.vol ? store.vol / 100 : 1,
});