art fixes

This commit is contained in:
Ondrej Zara 2020-03-14 22:40:11 +01:00
parent 2edde27e59
commit 8908e5b1c1
No known key found for this signature in database
GPG key ID: B0A5751E616840C5
5 changed files with 12 additions and 12 deletions

View file

@ -6,10 +6,9 @@ cyp-tag {
padding-bottom: 0;
.art {
img, .icon {
width: 64px;
height: 64px;
}
img, .icon { width: 100%; }
.icon {
filter: drop-shadow(var(--text-shadow));

File diff suppressed because one or more lines are too long

View file

@ -438,9 +438,9 @@ function status$1() {
function listQueue$1() {
return [
{Id:1, Track:"5", Title:"Title 1", Artist:"AAA", Album:"BBB", duration:30},
{Id:1, Track:"5", Title:"Title 1", Artist:"AAA", Album:"BBB", duration:30, file:"a.mp3"},
status$1(),
{Id:3, Track:"7", Title:"Title 3", Artist:"CCC", Album:"DDD", duration:230},
{Id:3, Track:"7", Title:"Title 3", Artist:"CCC", Album:"DDD", duration:230, file:"c.mp3"},
];
}
@ -483,7 +483,7 @@ function searchSongs$1(filter) {
}
function albumArt$1(songUrl) {
return null;
return new Promise(resolve => setTimeout(resolve, 3000));
}
function init$1() {}
@ -1468,7 +1468,7 @@ class Tag extends Item {
if (!src) {
let songs = await mpd.listSongs(filter, [0,1]);
if (songs.length) {
src = await get(artist, album, songs[0]["file"]);
src = await get(mpd, artist, album, songs[0]["file"]);
}
}
}

View file

@ -38,7 +38,7 @@ export default class Tag extends Item {
if (!src) {
let songs = await mpd.listSongs(filter, [0,1]);
if (songs.length) {
src = await art.get(artist, album, songs[0]["file"]);
src = await art.get(mpd, artist, album, songs[0]["file"]);
}
}
}

View file

@ -24,9 +24,9 @@ export function status() {
export function listQueue() {
return [
{Id:1, Track:"5", Title:"Title 1", Artist:"AAA", Album:"BBB", duration:30},
{Id:1, Track:"5", Title:"Title 1", Artist:"AAA", Album:"BBB", duration:30, file:"a.mp3"},
status(),
{Id:3, Track:"7", Title:"Title 3", Artist:"CCC", Album:"DDD", duration:230},
{Id:3, Track:"7", Title:"Title 3", Artist:"CCC", Album:"DDD", duration:230, file:"c.mp3"},
];
}
@ -69,6 +69,7 @@ export function searchSongs(filter) {
}
export function albumArt(songUrl) {
return new Promise(resolve => setTimeout(resolve, 3000));
return null;
}