about summary refs log tree commit diff
path: root/tools/mpd-stats/internal/scrobbler
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mpd-stats/internal/scrobbler')
-rw-r--r--tools/mpd-stats/internal/scrobbler/scrobbler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mpd-stats/internal/scrobbler/scrobbler.go b/tools/mpd-stats/internal/scrobbler/scrobbler.go
index f0f9d0e..eb4eb9c 100644
--- a/tools/mpd-stats/internal/scrobbler/scrobbler.go
+++ b/tools/mpd-stats/internal/scrobbler/scrobbler.go
@@ -44,7 +44,7 @@ func (s *Scrobbler) Run() error {
 
 	for {
 		e := <-s.player.Watcher.Event
-		if e != "" {
+		if e == mpd.SubSystemPlayer {
 			status, err := s.player.Client.Status()
 			if err != nil {
 				log.Printf("could not read the status: %v", err)