Include a shared Last.FM api key, providing zero conf ArtistInfo (bio/top songs/similar artists)

This commit is contained in:
Deluan
2021-05-27 16:14:24 -04:00
parent db11b6b8f8
commit b398053223
5 changed files with 50 additions and 10 deletions
+7 -3
View File
@@ -90,11 +90,15 @@ func checkFfmpegInstallation() {
}
func checkExternalCredentials() {
if conf.Server.LastFM.ApiKey == "" || conf.Server.LastFM.Secret == "" {
log.Info("Last.FM integration not available: missing ApiKey/Secret")
if !conf.Server.LastFM.Enabled {
log.Info("Last.FM integration is DISABLED")
} else {
log.Debug("Last.FM integration is ENABLED")
}
if conf.Server.Spotify.ID == "" || conf.Server.Spotify.Secret == "" {
log.Info("Spotify integration is not enabled: artist images will not be available")
log.Info("Spotify integration is not enabled: missing ID/Secret")
} else {
log.Debug("Spotify integration is ENABLED")
}
}