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 -3
View File
@@ -6,8 +6,9 @@ import (
"strings"
"time"
"github.com/BeatGlow/beatglow/player"
"github.com/sirupsen/logrus"
"github.com/BeatGlow/beatglow/player"
)
// Version number.
@@ -63,8 +64,8 @@ func parseStatus(p player.Player, status, track map[string]string) *player.Statu
s.Playing = true
s.Paused = false
case "pause":
s.Playing = true
s.Paused = false
s.Playing = false
s.Paused = true
}
s.Repeat = status["repeat"] == "1"
s.Shuffle = status["shuffle"] == "1"
+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++ {