Checkpoint
This commit is contained in:
223 files changed
+14770
-18352
No files matched your search
@@ -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++ {
|
||||
|
||||
Reference in new issue
Block a user