feat: add a link to Navidrome's website on the overlay logo

This commit is contained in:
deluan
2026-02-23 23:41:56 -05:00
parent a23e3f1e4d
commit df3a426203
3 changed files with 9 additions and 3 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

+8 -3
View File
@@ -31,9 +31,13 @@ const (
spotifyLinksKey = "spotifylinks" spotifyLinksKey = "spotifylinks"
) )
// navidromeLogoURL is the small overlay image shown in the bottom-right of the album art. const (
// The file is stored in Navidrome's website repository so Discord can fetch it as an external asset. navidromeWebsiteURL = "https://www.navidrome.org"
const navidromeLogoURL = "https://raw.githubusercontent.com/navidrome/website/refs/heads/master/assets/icons/logo.webp"
// 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 // Activity name display options
const ( const (
@@ -194,6 +198,7 @@ func (p *discordPlugin) NowPlaying(input scrobbler.NowPlayingRequest) error {
LargeURL: spotifyURL, LargeURL: spotifyURL,
SmallImage: navidromeLogoURL, SmallImage: navidromeLogoURL,
SmallText: "Navidrome", SmallText: "Navidrome",
SmallURL: navidromeWebsiteURL,
}, },
}); err != nil { }); err != nil {
return fmt.Errorf("%w: failed to send activity: %v", scrobbler.ScrobblerErrorRetryLater, err) return fmt.Errorf("%w: failed to send activity: %v", scrobbler.ScrobblerErrorRetryLater, err)
+1
View File
@@ -98,6 +98,7 @@ type activityAssets struct {
LargeURL string `json:"large_url,omitempty"` LargeURL string `json:"large_url,omitempty"`
SmallImage string `json:"small_image,omitempty"` SmallImage string `json:"small_image,omitempty"`
SmallText string `json:"small_text,omitempty"` SmallText string `json:"small_text,omitempty"`
SmallURL string `json:"small_url,omitempty"`
} }
// presencePayload represents a Discord presence update. // presencePayload represents a Discord presence update.