From 4f176ac4a02d8424d21b597b516e69cbec341a2c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 9 Oct 2021 17:20:22 -0700 Subject: scrobbler: watch for events and print song details We create a module "mpd" to interact with our MPD instance. For now we only have a single function to create a new client, which creates an actual client for mpd (and we ping the instance every 30 seconds), and a watcher to receive new events. The tool "scrobbler" then wait for new events and display songs information. --- tools/mpd-stats/go.mod | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/mpd-stats/go.mod') diff --git a/tools/mpd-stats/go.mod b/tools/mpd-stats/go.mod index fc37193..cafa7bc 100644 --- a/tools/mpd-stats/go.mod +++ b/tools/mpd-stats/go.mod @@ -1,3 +1,5 @@ module golang.fcuny.net/mpd-stats go 1.17 + +require github.com/fhs/gompd/v2 v2.2.0 -- cgit 1.4.1