Subsonic: jukeboxControl endpoint wired to real mpv-backed controller
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/config"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/coverart"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/database"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/jukebox"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/metadata"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/podcasts"
|
||||
"git.noroutes.net/NoRoutes/vibetunes/internal/scanner"
|
||||
@@ -96,6 +97,7 @@ func Open(cfg config.Config, log *slog.Logger) (*App, error) {
|
||||
CoverArt: covers,
|
||||
Transcoder: transcoding.NewManager(cfg.FFmpegPath),
|
||||
Podcasts: podcastMgr,
|
||||
Jukebox: jukebox.New(cfg.MPVPath),
|
||||
Log: log,
|
||||
}
|
||||
|
||||
@@ -103,6 +105,7 @@ func Open(cfg config.Config, log *slog.Logger) (*App, error) {
|
||||
}
|
||||
|
||||
func (a *App) Close() error {
|
||||
a.Subsonic.Jukebox.Close()
|
||||
return a.DB.Close()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user