🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
fix(scanner): fix error when importing playlists without an admin user
Deluan5b85b2839a43
diff --git a/scanner/phase_4_playlists.go b/scanner/phase_4_playlists.goindex f726343f2..d52743966 100644--- a/scanner/phase_4_playlists.go+++ b/scanner/phase_4_playlists.go@@ -50,7 +50,7 @@ func (p *phasePlaylists) produce(put func(entry *model.Folder)) error {return nil}u, _ := request.UserFrom(p.ctx)- if !u.IsAdmin {+ if !u.IsAdmin || u.ID == "" {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