diff --git a/lastfm/plugin.js b/lastfm/plugin.js index bd1dc70..3bbaad0 100644 --- a/lastfm/plugin.js +++ b/lastfm/plugin.js @@ -312,8 +312,8 @@ await listenBrainzLookupAdditional(track); let albumArtUrl = !track.additional_info?.release_mbid ? void 0 : `https://aart.yellows.ink/release/${track.additional_info.release_mbid}.webp`; if (albumArtUrl) { - const testRes = await fetch(albumArtUrl); - if (!testRes.redirected) + const testRes = await fetch(albumArtUrl, { method: "HEAD" }); + if (!testRes.ok) albumArtUrl = void 0; } return { diff --git a/lastfm/plugin.json b/lastfm/plugin.json index 8152538..f965e57 100644 --- a/lastfm/plugin.json +++ b/lastfm/plugin.json @@ -1 +1 @@ -{"name":"Last.fm Presence","author":"Yellowsink","description":"Shows your Last.fm now listening as a presence","hash":"db6fbc700bd8bb37b1ea3b9caff53de9"} \ No newline at end of file +{"name":"Last.fm Presence","author":"Yellowsink","description":"Shows your Last.fm now listening as a presence","hash":"371c6546e428ecf114e217129d15be1e"} \ No newline at end of file