about summary refs log tree commit diff
path: root/tools/mpd-stats
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-10 11:32:10 -0700
committerFranck Cuny <franck@fcuny.net>2022-06-11 14:32:07 -0700
commit94998291fbcb884510398b73150e7c9c543d2329 (patch)
treeca1fcded106e3a4aa7d6a8c43c7fcad84532220d /tools/mpd-stats
parentscrobbler: create a record on new song (diff)
downloadworld-94998291fbcb884510398b73150e7c9c543d2329.tar.gz
mpd: rename function to create the player
Diffstat (limited to 'tools/mpd-stats')
-rw-r--r--tools/mpd-stats/cmd/mpd-scrobbler/main.go2
-rw-r--r--tools/mpd-stats/internal/mpd/mpd.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/mpd-stats/cmd/mpd-scrobbler/main.go b/tools/mpd-stats/cmd/mpd-scrobbler/main.go
index 40b1348..3953123 100644
--- a/tools/mpd-stats/cmd/mpd-scrobbler/main.go
+++ b/tools/mpd-stats/cmd/mpd-scrobbler/main.go
@@ -11,7 +11,7 @@ func main() {
 	net := "tcp"
 	addr := "localhost:6600"
 
-	c, err := mpd.NewMPD(net, addr)
+	c, err := mpd.NewPlayer(net, addr)
 	if err != nil {
 		log.Fatalf("failed to create a client: %v", err)
 	}
diff --git a/tools/mpd-stats/internal/mpd/mpd.go b/tools/mpd-stats/internal/mpd/mpd.go
index 8991adc..ed9d3c2 100644
--- a/tools/mpd-stats/internal/mpd/mpd.go
+++ b/tools/mpd-stats/internal/mpd/mpd.go
@@ -12,7 +12,7 @@ type player struct {
 	Client  *mpd.Client
 }
 
-func NewMPD(net string, addr string) (*player, error) {
+func NewPlayer(net string, addr string) (*player, error) {
 	var (
 		p   player
 		err error