mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
Check for Last.FM and Spotify configuration at startup
This commit is contained in:
parent
79710fbee0
commit
6dc21d0595
@ -93,3 +93,13 @@ func checkFfmpegInstallation() {
|
|||||||
conf.Server.Scanner.Extractor = "taglib"
|
conf.Server.Scanner.Extractor = "taglib"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func checkExternalCredentials() {
|
||||||
|
if conf.Server.LastFM.ApiKey == "" || conf.Server.LastFM.Secret == "" {
|
||||||
|
log.Info("Last.FM integration not available: missing ApiKey/Secret")
|
||||||
|
}
|
||||||
|
|
||||||
|
if conf.Server.Spotify.ID == "" || conf.Server.Spotify.Secret == "" {
|
||||||
|
log.Info("Spotify integration is not enabled: artist images will not be available")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -33,6 +33,7 @@ func New(scanner *scanner.Scanner, ds model.DataStore) *Server {
|
|||||||
a.initRoutes()
|
a.initRoutes()
|
||||||
a.initScanner()
|
a.initScanner()
|
||||||
checkFfmpegInstallation()
|
checkFfmpegInstallation()
|
||||||
|
checkExternalCredentials()
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user