Summary
- Query lrc.red, LRCLIB, and Netease concurrently with 6s per-provider timeout and priority-based resolution
- Prefer word-timed lyrics from any provider, then highest-priority synced result, then plain lyrics
- Add enhanced-LRC word-tag detection, Netease yrc conversion, credit/instrumental cleanup, and shared metadata ranking
- Preserve word timing through romanization with per-word romanize and language-aware spacing
- Update README, overlay UI, styles, and cache handling for word-by-word highlighting
Testing
- Not run:
cargo testfor lyrics resolve/ranking/yrc/romanization unit tests - Not run: frontend lyrics and cache unit tests in
src/lyrics.test.tsandsrc/lyrics-cache.test.ts - Not run: manual overlay check for word-by-word vs line-by-line highlighting
Activity
21Review · 317416d
⚠️ 1 open finding
Queries lrc.red, LRCLIB and Netease concurrently with word-timed preference and new overlay highlighting. The remaining risk is a narrow instrumental false-positive via album-title equality; CI is still running on this SHA (last completed CI on 9bbb92d passed).
Confidence: 4/5 — All three prior findings are fixed and covered by new unit tests, leaving one Low edge with a concrete but uncommon trigger.
| Finding | Location | |
|---|---|---|
| 🆕 🔵 Low | Album match passes as exact title for instrumental | src-tauri/src/lib.rs:2546 |
| ✅ Fixed | Per-request timeout stacks and blocks fast providers | src-tauri/src/lib.rs:1827 |
| ✅ Fixed | Non-404 lyric error aborts before trying next candidate | src-tauri/src/lib.rs:1841 |
| ✅ Fixed | Netease instrumental marker becomes a miss | src-tauri/src/lib.rs:2620 |
Prompt for all open findings
- In
src-tauri/src/lib.rsaround lines 2536-2548 (fetch_neteaseexact-title guard) and 2171-2197 (metadata_scores), fix the instrumental guard to compare only the track title becausemetadata_scores(...).0ismax(track score, album score)so an album equal to the playing title yields 4: compute exact-title from the candidate track name only (canonical track vs normalized playing title), keep ranking/duration unchanged, and return instrumental only on that track-only exact match.
Review · e7e96a7
✅ No blocking issues
Queries lrc.red, LRCLIB and Netease concurrently with word-timed preference and new overlay highlighting. The album-title instrumental false positive is now fixed; CI is still running on this SHA (last completed CI on 317416d passed).
Confidence: 4/5 — All prior findings are fixed and the delta is covered by a new unit test, but CI on the head SHA has not completed yet.
| Finding | Location | |
|---|---|---|
| ✅ Fixed | Album match passes as exact title for instrumental | src-tauri/src/lib.rs:2558 |
Review · 9bbb92d
⚠️ 3 open findings
Queries lrc.red, LRCLIB and Netease concurrently with word-timed preference and new overlay highlighting. The biggest risk is a stalled word-capable provider holding the lookup for ~24 s despite the 6 s budget; CI (Frontend/Rust checks) is still running with no completed run yet.
Confidence: 3/5 — New resolve/ranking/yrc/segment logic is well unit-tested, but the timeout budget and two provider-fallback edges are untested and user-visible.
src-tauri/src/lib.rs:2343src-tauri/src/lib.rs:2351src-tauri/src/lib.rs:2527Prompt for all open findings
src-tauri/src/lib.rsaround lines 1827–1854 and 2293–2370 and 2413–2512, enforce a 6 s total budget per provider (wrap each provider future with an overall timeout) because per-request timeouts stack sequentially andresolve()blocks fast line-synced answers while word-capable slots are pending.src-tauri/src/lib.rsaround lines 2333–2364 (and the same pattern around 2467–2506), record lyric-fetch errors andcontinueto the next ranked candidate instead of immediatereturn Err, returning the error only when no candidate yields timed lyrics.src-tauri/src/lib.rsaround lines 2487–2531, preserve the Netease instrumental signal by returning an instrumentalLyricsResultwhen the raw file contains only the纯音乐marker instead of cleaning it to empty and returningOk(None).