🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
fix(scanner): better log message when AutoImportPlaylists is disabled
Deluanb386981b7f06
diff --git a/scanner/phase_4_playlists.go b/scanner/phase_4_playlists.goindex c3e76cb8c..c98b51ee6 100644--- a/scanner/phase_4_playlists.go+++ b/scanner/phase_4_playlists.go@@ -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