art fixes
This commit is contained in:
parent
2edde27e59
commit
8908e5b1c1
5 changed files with 12 additions and 12 deletions
|
@ -6,10 +6,9 @@ cyp-tag {
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
|
|
||||||
.art {
|
.art {
|
||||||
img, .icon {
|
|
||||||
width: 64px;
|
width: 64px;
|
||||||
height: 64px;
|
height: 64px;
|
||||||
}
|
img, .icon { width: 100%; }
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
filter: drop-shadow(var(--text-shadow));
|
filter: drop-shadow(var(--text-shadow));
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -438,9 +438,9 @@ function status$1() {
|
||||||
|
|
||||||
function listQueue$1() {
|
function listQueue$1() {
|
||||||
return [
|
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(),
|
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) {
|
function albumArt$1(songUrl) {
|
||||||
return null;
|
return new Promise(resolve => setTimeout(resolve, 3000));
|
||||||
}
|
}
|
||||||
|
|
||||||
function init$1() {}
|
function init$1() {}
|
||||||
|
@ -1468,7 +1468,7 @@ class Tag extends Item {
|
||||||
if (!src) {
|
if (!src) {
|
||||||
let songs = await mpd.listSongs(filter, [0,1]);
|
let songs = await mpd.listSongs(filter, [0,1]);
|
||||||
if (songs.length) {
|
if (songs.length) {
|
||||||
src = await get(artist, album, songs[0]["file"]);
|
src = await get(mpd, artist, album, songs[0]["file"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ export default class Tag extends Item {
|
||||||
if (!src) {
|
if (!src) {
|
||||||
let songs = await mpd.listSongs(filter, [0,1]);
|
let songs = await mpd.listSongs(filter, [0,1]);
|
||||||
if (songs.length) {
|
if (songs.length) {
|
||||||
src = await art.get(artist, album, songs[0]["file"]);
|
src = await art.get(mpd, artist, album, songs[0]["file"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,9 +24,9 @@ export function status() {
|
||||||
|
|
||||||
export function listQueue() {
|
export function listQueue() {
|
||||||
return [
|
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(),
|
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) {
|
export function albumArt(songUrl) {
|
||||||
|
return new Promise(resolve => setTimeout(resolve, 3000));
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue