Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:54 +01:00
1 parent c5d6137fab
commit 4ae7655cd8
223 files changed
+14770 -18352

No files matched your search

+4 -2
View File
@@ -18,7 +18,7 @@ import (
)
func init() {
player.Register("mpd", func(config config.Player) (player.Player, error) {
player.Register("mpd", func(config *config.Player) (player.Player, error) {
return New(config.Host, config.Password)
}, Detect, 10)
}
@@ -150,7 +150,9 @@ func newConn(addr, password, kind, name string) (*clientConn, *Version, error) {
return &clientConn{conn, kind}, &version, nil
}
func (*Player) Type() string { return "mpd" }
func (p *Player) String() string {
return "mpd@" + p.addr
}
func (p *Player) Halt() error {
for i := 0; i < 2; i++ {