fix: add import time checking to koito import

This commit is contained in:
Gabe Farrell 2026-01-12 16:52:36 -05:00
parent 231eb1b0fb
commit fb45e9058d

View file

@ -42,6 +42,10 @@ func ImportKoitoFile(ctx context.Context, store db.DB, filename string) error {
count := 0
for i := range data.Listens {
if !inImportTimeWindow(data.Listens[i].ListenedAt) {
l.Debug().Msgf("Skipping import due to import time rules")
continue
}
// use this for save/get mbid for all artist/album/track
var mbid uuid.UUID