cleanupses

This commit is contained in:
legop3
2026-11-17 00:34:27 -05:00
parent 2d9b6e4a36
commit c384a1389a
27 changed files with 64 additions and 1346 deletions
-7
View File
@@ -91,13 +91,6 @@ func (m *MediaSupervisor) selection(category string) (bool, string) {
return m.cfg.Media.AudioPlayback.Enabled, m.cfg.Media.AudioPlayback.Profile
}
}
func (m *MediaSupervisor) HandleAction(_ context.Context, action string) error {
if action != "stop" {
return fmt.Errorf("save configuration to start or restart media")
}
m.Stop()
return nil
}
func (m *MediaSupervisor) supervise(ctx context.Context, category, id string) {
var profile *MediaProfile
for _, p := range m.profiles[category] {