mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-26 16:32:18 +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
3b06214361
commit
82face2dbd
@ -45,8 +45,12 @@ func (p *phasePlaylists) producer() ppl.Producer[*model.Folder] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *phasePlaylists) produce(put func(entry *model.Folder)) error {
|
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)
|
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, "+
|
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")
|
"Please create an admin user first, and then update the playlists for them to be imported")
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user