feat: use Cover Art Archive for albums with MusicBrainz IDs (#27)

This commit was merged in pull request #27.
This commit is contained in:
Deluan Quintão
2026-03-20 20:34:11 -04:00
committed by GitHub
parent 9d9dce052a
commit 606a7f2389
7 changed files with 366 additions and 21 deletions
+3 -1
View File
@@ -29,6 +29,8 @@ const (
usersKey = "users"
activityNameKey = "activityname"
spotifyLinksKey = "spotifylinks"
caaEnabledKey = "caaenabled"
uguuEnabledKey = "uguuenabled"
)
const (
@@ -193,7 +195,7 @@ func (p *discordPlugin) NowPlaying(input scrobbler.NowPlayingRequest) error {
End: endTime,
},
Assets: activityAssets{
LargeImage: getImageURL(input.Username, input.Track.ID),
LargeImage: getImageURL(input.Username, input.Track),
LargeText: input.Track.Album,
LargeURL: spotifyURL,
SmallImage: navidromeLogoURL,