aboutsummaryrefslogtreecommitdiff
path: root/internal/scrobbler
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--internal/scrobbler/scrobbler.go5
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,