fix: FLAC, Ogg and Opus tracks carry their MusicBrainz recording id from the tag: one reader in library gives the scanner, the backfills and the importer the same ids, and the next scan re-reads the library (#5637)
release / govulncheck (push) Successful in 20s
release / web (push) Successful in 1m30s
release / go (push) Successful in 1m50s
release / integration (push) Successful in 5m19s
release / android (push) Successful in 5m50s
release / Build signed APK (releases and dev) (push) Successful in 6m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 16s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-11 15:55:25 -04:00
co-authored by Claude Opus 5.5
parent c1305a547d
commit 9e7d50b38e
5 changed files with 109 additions and 76 deletions
+3 -2
View File
@@ -165,7 +165,8 @@ func readMBIDsForFile(path string, logger *slog.Logger) (albumMBID, artistMBID s
logger.Warn("mbid backfill: tag read failed", "path", path, "err", err)
return "", ""
}
return extractMBIDs(meta)
ids := ReadTagMBIDs(meta)
return ids.Release, ids.Artist
}
// BackfillTrackMBIDsResult tallies the track recording-MBID backfill.
@@ -258,5 +259,5 @@ func readRecordingMBIDForFile(path string, logger *slog.Logger) string {
logger.Warn("track mbid backfill: tag read failed", "path", path, "err", err)
return ""
}
return extractRecordingMBID(meta)
return ReadTagMBIDs(meta).Recording
}