Files
minstrel/internal/db/migrations/0087_library_rematch.up.sql
T
bvandeusenandClaude Opus 5.5 80d2fdc3ab
release / govulncheck (push) Successful in 15s
release / web (push) Successful in 1m19s
release / go (push) Successful in 1m33s
release / android (push) Successful in 4m54s
release / integration (push) Successful in 4m59s
release / Build signed APK (releases and dev) (push) Successful in 5m6s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped
fix: under the album's own name, matching track titles are enough to match it; a refusal says which track differed and how (M502 #5569)
The first run on the library refused singles whose one track has the
album's title ("0 of 1 agree") and near-complete albums (11 of 14), because
every track's length had to fit as well. Lengths now only decide between
groups whose names merely overlap. The reason for a refusal names the first
track that differed, with both titles and lengths, so what is left can be
judged. Migration 0087 clears the refusals so those albums are matched
again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 17:29:42 -04:00

10 lines
468 B
SQL

-- The first matching (#5569) required every track's length to fit as well
-- as its title, and refused singles and near-complete albums the library
-- plainly holds. Matching now takes the titles alone under the album's own
-- name: the albums it refused are matched again.
DELETE FROM library_album_matches WHERE outcome = 'unmatched';
UPDATE acquisition_settings
SET library_listed_at = NULL, library_unlisted = 0
WHERE library_listing_started_at IS NOT NULL;