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

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Andrei Neacsu 2024-02-27 06:30:27 -06:00 committed by GitHub
parent 76de8c424e
commit 1afa185f57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,