From a4fe1e3ef4e06e19f146a0a6498cdb550ef8b4f3 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Oct 2021 17:52:19 -0700 Subject: scrobbler: record how long a song was played Add a column `playtime` to the records table to keep track of how long a song was played. With this information, in the future, we will be able to sum up how long we listen to music, but also which songs were skipped. --- internal/scrobbler/db.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/scrobbler/db.go') diff --git a/internal/scrobbler/db.go b/internal/scrobbler/db.go index a788b4c..5f80aa4 100644 --- a/internal/scrobbler/db.go +++ b/internal/scrobbler/db.go @@ -24,6 +24,7 @@ func initdb(dbpath string) error { artist text, album text, duration int, + playtime int, time timestamp );` -- cgit v1.2.3