fix: reset current time on getSong

chore: update shaka and prettier
This commit is contained in:
Shiny Nematoda 2024-07-13 15:19:44 +00:00
parent a96d9b5c24
commit 7b18bdd9d5
3 changed files with 125 additions and 126 deletions

View file

@ -30,6 +30,8 @@ export const useData = defineStore('data', () => {
state.title = unamp(json.title);
state.artist = unamp(json.uploader.replace(' - Topic', ''));
state.artistUrl = json.uploaderUrl;
player.state.currentTime = 0;
player.setTime(0);
player.state.duration = json.duration;
player.state.hls = unamp(json.hls);
player.state.streams = json.audioStreams;