diff options
author | Franck Cuny <franck@fcuny.net> | 2021-10-10 11:32:10 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-06-11 14:32:07 -0700 |
commit | 94998291fbcb884510398b73150e7c9c543d2329 (patch) | |
tree | ca1fcded106e3a4aa7d6a8c43c7fcad84532220d /tools/mpd-stats | |
parent | scrobbler: create a record on new song (diff) | |
download | world-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.go | 2 | ||||
-rw-r--r-- | tools/mpd-stats/internal/mpd/mpd.go | 2 |
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 |