mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-29 05:28:00 +02:00
Changes:
- POST requests for feeds - Export subscriptions - Replaced xml-js - Thumbnails for songs in local playlist - Closes #107
This commit is contained in:
parent
e01a6b71dc
commit
35ec1b6a3a
14 changed files with 502 additions and 545 deletions
|
@ -37,7 +37,7 @@ export function useStore() {
|
|||
|
||||
export function useMetadata(url, urls, data) {
|
||||
if ('mediaSession' in navigator) {
|
||||
const now = urls.filter(u => u.url === url)[0];
|
||||
const now = urls.find(u => u.url === url);
|
||||
|
||||
let artwork = [],
|
||||
album = undefined;
|
||||
|
@ -51,7 +51,7 @@ export function useMetadata(url, urls, data) {
|
|||
src: t.url,
|
||||
type: 'image/webp',
|
||||
}));
|
||||
} else artwork = [{ src: data.art, type: 'image/webp' }];
|
||||
} else if (data.art) artwork = [{ src: data.art, type: 'image/webp' }];
|
||||
|
||||
console.log(album, artwork);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue