mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-01 19:47:37 +03:00
fix(scanner): better log message when AutoImportPlaylists is disabled
Fix #3861 Signed-off-by: Deluan <deluan@navidrome.org>
This commit is contained in:
parent
be7cb59dc5
commit
b386981b7f
1 changed files with 5 additions and 1 deletions
|
@ -45,8 +45,12 @@ func (p *phasePlaylists) producer() ppl.Producer[*model.Folder] {
|
|||
}
|
||||
|
||||
func (p *phasePlaylists) produce(put func(entry *model.Folder)) error {
|
||||
if !conf.Server.AutoImportPlaylists {
|
||||
log.Info(p.ctx, "Playlists will not be imported, AutoImportPlaylists is set to false")
|
||||
return nil
|
||||
}
|
||||
u, _ := request.UserFrom(p.ctx)
|
||||
if !conf.Server.AutoImportPlaylists || !u.IsAdmin {
|
||||
if !u.IsAdmin {
|
||||
log.Warn(p.ctx, "Playlists will not be imported, as there are no admin users yet, "+
|
||||
"Please create an admin user first, and then update the playlists for them to be imported")
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue