From b0e3bdaaba4f2671769f9c690b33155d7cf15017 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 29 Aug 2025 09:26:10 -0700 Subject: fix import paths for mpd-scrobbler --- cmd/mpd-scrobbler/main.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'cmd') 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 } } -- cgit v1.2.3