Summary
Fix Library Import's Start Matching selecting unrelated search results, then rank plausible audiobook editions using scanned audio duration. Show confidence and duration evidence for automatic suggestions and manual searches, and share that matching implementation with Repair for existing audiobooks.
Fixes #1237.
Changes
Added
- Durable full-Repair E2E coverage through the real API: generated one-minute audio, persisted new ASIN/region and catalogue metadata, reload, unchanged recorded file details and SHA-256 hashes.
- A live corrupt-track regression that retains every discovered track and refuses automatic selection when complete audio duration is unknown, even if the playable tracks exactly match a candidate's runtime.
- A browser-clock regression that times out metadata hydration, rejects the late result, successfully hydrates a fresh retry and verifies no Repair writes occurred.
- Complete duration totals and narrator credits from every discovered audio track in a grouped scan row. Missing, invalid or failed track probes leave the total duration unknown.
- Confidence badges, ranked edition suggestions, catalogue runtime, duration differences and evidence tooltips. Close or incomplete matches remain available for an explicit manual choice.
- Confidence percentages on manual Library Import search results, assessed against the original scanned evidence even after editing the search query. Selected manual scores survive reload and are recalculated after rescanning while preserving the chosen record.
- Reusable frontend matching modules for identity comparison, evidence/reference adapters, scoring, ranking, configurable selection policies and optional metadata preparation, plus a shared confidence component and usage documentation.
- Repair confidence ranking against complete recorded tracked-file durations. Existing title/author/narrator metadata is advisory because it may belong to the incorrect match being corrected. The cu...
Automated Canary build