From f0b79090de5793bbbf6af0150a613db508f9823e Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Mon, 16 Oct 2023 23:29:01 -0400 Subject: [PATCH] Blacklist default cover icon --- main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.js b/main.js index 43d9329..d80075b 100644 --- a/main.js +++ b/main.js @@ -121,6 +121,13 @@ async function fetchCurrentScrobble(user) { coverURL = coverURL.replace('300x300', '1000x1000'); } + const ignoreURL = "https://lastfm.freetls.fastly.net/i/u/1000x1000/2a96cbd8b46e442fc41c2b86b821562f.png"; + + if (coverURL === ignoreURL) { + console.log("Ignored URL detected. Skipping update."); + return; + } + if (coverURL) { const { outputBuffer, dominantColor } = await processAlbumCover(coverURL);