feat(server/m7-352): cron loop + main.go wiring for system playlist build

This commit is contained in:
2026-05-04 09:16:07 -04:00
parent 797a2c8a45
commit 391f5f16a1
2 changed files with 63 additions and 0 deletions
+2
View File
@@ -18,6 +18,7 @@ import (
"git.fabledsword.com/bvandeusen/minstrel/internal/lidarrconfig"
"git.fabledsword.com/bvandeusen/minstrel/internal/lidarrrequests"
"git.fabledsword.com/bvandeusen/minstrel/internal/logging"
"git.fabledsword.com/bvandeusen/minstrel/internal/playlists"
"git.fabledsword.com/bvandeusen/minstrel/internal/scrobble"
"git.fabledsword.com/bvandeusen/minstrel/internal/scrobble/listenbrainz"
"git.fabledsword.com/bvandeusen/minstrel/internal/server"
@@ -110,6 +111,7 @@ func run() error {
srv := server.New(logger, pool, scanner, subsonic.Config{
AllowPlaintextPassword: cfg.Subsonic.AllowPlaintextPassword,
}, cfg.Events, cfg.Recommendation, cfg.Storage.DataDir, cfg.Branding)
playlists.StartSystemPlaylistCron(ctx, pool, logger.With("component", "system_playlist_cron"))
httpServer := &http.Server{
Addr: cfg.Server.Address,
Handler: srv.Router(),