diff options
Diffstat (limited to '')
| -rw-r--r-- | cmd/mpd-scrobbler/main.go | 16 |
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 } } |
