From dd2548a089a2379826e13485886d2b05ec1fb16a Mon Sep 17 00:00:00 2001 From: ynot01 Date: Mon, 4 May 2026 07:28:31 -0400 Subject: [PATCH] LastFMRPC: add option to hide album cover (#3249) --- src/plugins/lastfmRichPresence/index.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/plugins/lastfmRichPresence/index.tsx b/src/plugins/lastfmRichPresence/index.tsx index 3da255873..1b755ac24 100644 --- a/src/plugins/lastfmRichPresence/index.tsx +++ b/src/plugins/lastfmRichPresence/index.tsx @@ -174,6 +174,11 @@ const settings = definePluginSettings({ type: OptionType.BOOLEAN, default: true, }, + showAlbumCover: { + description: "Show album cover. Disabling this will display a placeholder. Useful if your Music has inappropriate art", + type: OptionType.BOOLEAN, + default: true, + } }); export default definePlugin({ @@ -250,7 +255,7 @@ export default definePlugin({ }, getLargeImage(track: TrackData): string | undefined { - if (track.imageUrl && !track.imageUrl.includes(LASTFM_PLACEHOLDER_IMAGE_HASH)) + if (settings.store.showAlbumCover && track.imageUrl && !track.imageUrl.includes(LASTFM_PLACEHOLDER_IMAGE_HASH)) return track.imageUrl; if (settings.store.missingArt === "placeholder")