Skip to content

Commit

Permalink
Use "Custom background" when current song's image_url is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaldino7712 authored Dec 10, 2024
1 parent e7d0ad5 commit aea6731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit aea6731

Please sign in to comment.