LastfmRichPresence: Add an option to hide the Last.fm logo (#2189)

Co-authored-by: V <vendicated@riseup.net>
main
Andrei Neacsu 9 months ago committed by GitHub
parent 76de8c424e
commit 1afa185f57
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -170,6 +170,11 @@ const settings = definePluginSettings({
}
],
},
showLastFmLogo: {
description: "show the Last.fm logo by the album cover",
type: OptionType.BOOLEAN,
default: true,
}
});
export default definePlugin({
@ -276,8 +281,10 @@ export default definePlugin({
{
large_image: await getApplicationAsset(largeImage),
large_text: trackData.album || undefined,
small_image: await getApplicationAsset("lastfm-small"),
small_text: "Last.fm",
...(settings.store.showLastFmLogo && {
small_image: await getApplicationAsset("lastfm-small"),
small_text: "Last.fm"
}),
} : {
large_image: await getApplicationAsset("lastfm-large"),
large_text: trackData.album || undefined,

Loading…
Cancel
Save