diff --git a/cmd/root.go b/cmd/root.go index 8d34cda0a..dbeef0f6b 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -63,7 +63,7 @@ func runNavidrome() { if schedule != "" { go schedulePeriodicScan(schedule) } else { - log.Warn("Periodic scan is DISABLED", "schedule", schedule) + log.Warn("Periodic scan is DISABLED") } if err := g.Run(); err != nil { diff --git a/conf/configuration.go b/conf/configuration.go index 606493800..83eb3d592 100644 --- a/conf/configuration.go +++ b/conf/configuration.go @@ -158,6 +158,7 @@ func validateScanSchedule() error { } } if Server.ScanSchedule == "0" || Server.ScanSchedule == "" { + Server.ScanSchedule = "" return nil } if _, err := time.ParseDuration(Server.ScanSchedule); err == nil {