feat: add a link to Navidrome's website on the overlay logo
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user