diff --git a/src/logic/Utils.ts b/src/logic/Utils.ts index 8f9cd3a0..b71b5b2e 100644 --- a/src/logic/Utils.ts +++ b/src/logic/Utils.ts @@ -391,7 +391,7 @@ async function waitForAlbumArt(): Promise { // Only return when the album art is loaded return new Promise((resolve) => { setInterval(() => { - const albumArtSrc = Spicetify.Player.data?.track?.metadata?.image_xlarge_url; + const albumArtSrc = Spicetify.Player.data?.item?.metadata?.image_xlarge_url; if (albumArtSrc) { resolve(albumArtSrc); } @@ -404,7 +404,7 @@ export const initAlbumArtBasedColor = (scheme: ColourScheme) => { // and update the color scheme accordingly Spicetify.Player.addEventListener("songchange", async () => { await sleep(1000); - let albumArtSrc = Spicetify.Player.data?.track?.metadata?.image_xlarge_url; + let albumArtSrc = Spicetify.Player.data?.item?.metadata?.image_xlarge_url; // If it doesn't exist, wait for it to load if (albumArtSrc == null) {