From ad6161c40a5c2ef3d6985fff671117ee9df809e5 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Tue, 12 Sep 2023 20:28:35 +0200 Subject: [PATCH] show dummy icon inside media info --- src/App.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/App.vue b/src/App.vue index 350018a..9b5fefd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -206,27 +206,32 @@ export default { album: track.parent.title, artwork: [ { - src: track.parent.covers.cover32, + src: + track.parent.covers.cover32 || "/static/icons/dummy/album.svg", sizes: "32x32", type: "image/png", }, { - src: track.parent.covers.cover64, + src: + track.parent.covers.cover64 || "/static/icons/dummy/album.svg", sizes: "64x64", type: "image/png", }, { - src: track.parent.covers.cover128, + src: + track.parent.covers.cover128 || "/static/icons/dummy/album.svg", sizes: "96x96", type: "image/png", }, { - src: track.parent.covers.cover128, + src: + track.parent.covers.cover128 || "/static/icons/dummy/album.svg", sizes: "128x128", type: "image/png", }, { - src: track.parent.covers.cover128, + src: + track.parent.covers.cover128 || "/static/icons/dummy/album.svg", sizes: "256x256", type: "image/png", },