feat(server): add option Lastfm.ScrobbleFirstArtistOnly to send only the first artist (#4131)

fixes #3791

Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
Deluan Quintão
2025-05-28 08:43:07 -04:00
committed by GitHub
parent 66926ca466
commit d4a053370a
3 changed files with 38 additions and 6 deletions

View File

@@ -154,10 +154,11 @@ type TagConf struct {
}
type lastfmOptions struct {
Enabled bool
ApiKey string
Secret string
Language string
Enabled bool
ApiKey string
Secret string
Language string
ScrobbleFirstArtistOnly bool
}
type spotifyOptions struct {
@@ -528,6 +529,7 @@ func setViperDefaults() {
viper.SetDefault("lastfm.language", "en")
viper.SetDefault("lastfm.apikey", "")
viper.SetDefault("lastfm.secret", "")
viper.SetDefault("lastfm.scrobblefirstartistonly", false)
viper.SetDefault("spotify.id", "")
viper.SetDefault("spotify.secret", "")
viper.SetDefault("listenbrainz.enabled", true)