aboutsummaryrefslogtreecommitdiff
path: root/cmd/mpd-scrobbler
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-29 09:26:10 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-29 09:26:10 -0700
commitb0e3bdaaba4f2671769f9c690b33155d7cf15017 (patch)
tree54d6a5c06056aacd3839367aa4c360ebaa93b748 /cmd/mpd-scrobbler
parentMerge remote-tracking branch 'import/main' (diff)
downloadx-b0e3bdaaba4f2671769f9c690b33155d7cf15017.tar.gz
fix import paths for mpd-scrobbler
Diffstat (limited to 'cmd/mpd-scrobbler')
-rw-r--r--cmd/mpd-scrobbler/main.go16
1 files changed, 12 insertions, 4 deletions
diff --git a/cmd/mpd-scrobbler/main.go b/cmd/mpd-scrobbler/main.go
index c2693a4..cce441d 100644
--- a/cmd/mpd-scrobbler/main.go
+++ b/cmd/mpd-scrobbler/main.go
@@ -7,13 +7,21 @@ import (
"os"
"path/filepath"
- "golang.fcuny.net/mpd-stats/internal/scrobbler"
+ "go.fcuny.net/x/internal/scrobbler"
)
func main() {
var (
- mpdHost = flag.String("host", "localhost", "The MPD server to connect to (default: localhost)")
- mpdPort = flag.Int("port", 6600, "The TCP port of the MPD server to connect to (default: 6600)")
+ mpdHost = flag.String(
+ "host",
+ "localhost",
+ "The MPD server to connect to (default: localhost)",
+ )
+ mpdPort = flag.Int(
+ "port",
+ 6600,
+ "The TCP port of the MPD server to connect to (default: 6600)",
+ )
)
flag.Parse()
@@ -48,7 +56,7 @@ func getDbPath() (string, error) {
scrobblerHome := filepath.Join(xch, "mpd-scrobbler")
if _, err := os.Stat(scrobblerHome); os.IsNotExist(err) {
- if err := os.Mkdir(scrobblerHome, 0755); err != nil {
+ if err := os.Mkdir(scrobblerHome, 0o755); err != nil {
return "", err
}
}