Error preventing

[ci skip]
This commit is contained in:
Core 2022-10-27 10:20:25 +01:00
parent 143e435017
commit 02df606c2e
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -4342,7 +4342,7 @@ const app = new Vue({
artworkSize = 110;
}
const mediaItem = (app?.mk?.nowPlayingItem?.attributes?.artwork?.url ? app?.mk?.nowPlayingItem : null) ?? (await this.mk.api.v3.music(`/v1/me/library/songs/${this.mk?.nowPlayingItem?.id}`)?.data?.data?.data[0]) ?? {};
return { currentArtUrlRaw: mediaItem.attributes?.artwork?.url ?? "", currentArtUrl: mediaItem._assets[0]?.artworkURL ?? mediaItem.attributes.artwork.url.replace("{w}", artworkSize).replace("{h}", artworkSize) };
return { currentArtUrlRaw: mediaItem?.attributes?.artwork?.url ?? "", currentArtUrl: mediaItem?._assets[0]?.artworkURL ?? mediaItem?.attributes?.artwork?.url?.replace("{w}", artworkSize).replace("{h}", artworkSize) };
},
async setLibraryArt() {
if (typeof this.mk.nowPlayingItem === "undefined") return;