Blacklist default cover icon
This commit is contained in:
parent
1b0cf7c2b3
commit
f0b79090de
7
main.js
7
main.js
|
@ -121,6 +121,13 @@ async function fetchCurrentScrobble(user) {
|
||||||
coverURL = coverURL.replace('300x300', '1000x1000');
|
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) {
|
if (coverURL) {
|
||||||
const { outputBuffer, dominantColor } = await processAlbumCover(coverURL);
|
const { outputBuffer, dominantColor } = await processAlbumCover(coverURL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue