mirror of
https://github.com/gabehf/Koito.git
synced 2026-04-22 12:01:52 -07:00
fix: add import time checking to koito import
This commit is contained in:
parent
231eb1b0fb
commit
fb45e9058d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue