fix: uamp failing when input is null

+ update deps
This commit is contained in:
Shiny Nematoda 2024-06-13 19:12:44 +00:00
parent 94011d1b8a
commit fd246644c1
3 changed files with 725 additions and 715 deletions

View file

@ -23,7 +23,7 @@ export const useData = defineStore('data', () => {
async function getSong(e) {
const hash = new URLSearchParams(e.substring(e.indexOf('?'))).get('v'),
json = await getJsonPiped('/streams/' + hash),
unamp = txt => txt.replace(AMP, '&');
unamp = txt => txt?.replace(AMP, '&');
state.art = unamp(json.thumbnailUrl);
state.description = json.description;