diff --git a/logo.webp b/logo.webp new file mode 100644 index 0000000..3623608 Binary files /dev/null and b/logo.webp differ diff --git a/main.go b/main.go index 9aebd0b..ce39cd3 100644 --- a/main.go +++ b/main.go @@ -31,9 +31,13 @@ const ( spotifyLinksKey = "spotifylinks" ) -// navidromeLogoURL is the small overlay image shown in the bottom-right of the album art. -// The file is stored in Navidrome's website repository so Discord can fetch it as an external asset. -const navidromeLogoURL = "https://raw.githubusercontent.com/navidrome/website/refs/heads/master/assets/icons/logo.webp" +const ( + navidromeWebsiteURL = "https://www.navidrome.org" + + // navidromeLogoURL is the small overlay image shown in the bottom-right of the album art. + // The file is stored in the plugins' GitHub repository so Discord can fetch it as an external asset. + navidromeLogoURL = "https://raw.githubusercontent.com/navidrome/website/refs/heads/master/assets/icons/logo.webp" +) // Activity name display options const ( @@ -194,6 +198,7 @@ func (p *discordPlugin) NowPlaying(input scrobbler.NowPlayingRequest) error { LargeURL: spotifyURL, SmallImage: navidromeLogoURL, SmallText: "Navidrome", + SmallURL: navidromeWebsiteURL, }, }); err != nil { return fmt.Errorf("%w: failed to send activity: %v", scrobbler.ScrobblerErrorRetryLater, err) diff --git a/rpc.go b/rpc.go index d710c57..d3a2682 100644 --- a/rpc.go +++ b/rpc.go @@ -98,6 +98,7 @@ type activityAssets struct { LargeURL string `json:"large_url,omitempty"` SmallImage string `json:"small_image,omitempty"` SmallText string `json:"small_text,omitempty"` + SmallURL string `json:"small_url,omitempty"` } // presencePayload represents a Discord presence update.