Fixed import count updates

This commit is contained in:
Philipp Wolfer 2023-11-21 19:05:06 +01:00
parent 56eae67292
commit 08876a2d70
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
4 changed files with 4 additions and 5 deletions

View file

@ -74,7 +74,6 @@ func (b *SpotifyApiBackend) ExportListens(oldestTimestamp time.Time, results cha
p := models.Progress{Total: int64(totalDuration.Seconds())}
out:
for {
result, err := b.client.RecentlyPlayedAfter(minTime, MaxItemsPerGet)
if err != nil {
@ -114,7 +113,7 @@ out:
} else {
// result contains listens older then oldestTimestamp,
// we can stop requesting more
break out
break
}
}