From aea6731abdc56b5eca16a007146e0ae3c1abb278 Mon Sep 17 00:00:00 2001 From: Donaldino7712 <100215778+Donaldino7712@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:57:32 +0100 Subject: [PATCH] Use "Custom background" when current song's image_url is undefined --- hazy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hazy.js b/hazy.js index 64b7bd5..b63a1b3 100644 --- a/hazy.js +++ b/hazy.js @@ -95,7 +95,7 @@ //custom code added by lily if (!config.useCustomColor) { let imageUrl; - if (!config.useCurrSongAsHome) { + if (!config.useCurrSongAsHome && Spicetify.Player.data.item.metadata.image_url) { imageUrl = Spicetify.Player.data.item.metadata.image_url.replace("spotify:image:", "https://i.scdn.co/image/"); } else { const defImage = "https://i.imgur.com/Wl2D0h0.png";