about summary refs log tree commit diff
diff options
context:
space:
mode:
-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