feat: backfill durations from musicbrainz

This commit is contained in:
Gabe Farrell 2026-01-14 00:01:31 -05:00
parent 288d04d714
commit 2a73856f39
6 changed files with 207 additions and 15 deletions

View file

@ -137,3 +137,13 @@ WHERE artist_id = $1 AND track_id = $2;
-- name: DeleteTrack :exec
DELETE FROM tracks WHERE id = $1;
-- name: GetTracksWithNoDurationButHaveMbzID :many
SELECT
*
FROM tracks_with_title
WHERE duration = 0
AND musicbrainz_id IS NOT NULL
AND id > $2
ORDER BY id ASC
LIMIT $1;