Blacklist default cover icon

This commit is contained in:
Wizzard 2023-10-16 23:29:01 -04:00
parent 1b0cf7c2b3
commit f0b79090de
1 changed files with 7 additions and 0 deletions

View File

@ -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);