diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-29 09:26:10 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-29 09:26:10 -0700 |
| commit | b0e3bdaaba4f2671769f9c690b33155d7cf15017 (patch) | |
| tree | 54d6a5c06056aacd3839367aa4c360ebaa93b748 /internal | |
| parent | Merge remote-tracking branch 'import/main' (diff) | |
| download | x-b0e3bdaaba4f2671769f9c690b33155d7cf15017.tar.gz | |
fix import paths for mpd-scrobbler
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/scrobbler/scrobbler.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/scrobbler/scrobbler.go b/internal/scrobbler/scrobbler.go index f0f9d0e..694f9ff 100644 --- a/internal/scrobbler/scrobbler.go +++ b/internal/scrobbler/scrobbler.go @@ -5,7 +5,7 @@ import ( "log" "time" - "golang.fcuny.net/mpd-stats/internal/mpd" + "go.fcuny.net/x/internal/mpd" ) type Scrobbler struct { @@ -96,7 +96,8 @@ func (s *Scrobbler) Run() error { } func (s *Scrobbler) save(record *Record) error { - _, err := s.db.Exec("insert into records(id, title, artist, album, duration, playtime, time) values(?, ?, ?, ?, ?, 0, ?)", + _, err := s.db.Exec( + "insert into records(id, title, artist, album, duration, playtime, time) values(?, ?, ?, ?, ?, 0, ?)", record.Id, record.Title, record.Artist, |
