mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-13 17:40:26 -07:00
fix: correctly cycle tracks in backfill (#138)
This commit is contained in:
parent
231e751be3
commit
8223a29be6
3 changed files with 38 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ func BackfillTrackDurationsFromMusicBrainz(
|
|||
var from int32 = 0
|
||||
|
||||
for {
|
||||
l.Debug().Int32("ID", from).Msg("Fetching tracks to backfill from ID")
|
||||
tracks, err := store.GetTracksWithNoDurationButHaveMbzID(ctx, from)
|
||||
if err != nil {
|
||||
return fmt.Errorf("BackfillTrackDurationsFromMusicBrainz: failed to fetch tracks for duration backfill: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue