mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
buildStructuredLyric had grown a ~70-line inline block doing agent indexing, a bespoke main-first agent sort, and per-agent cue-line assembly, pushing helpers.go past 700 lines. Move all lyric response builders into a dedicated lyrics.go and split the inline logic into focused units: a lyricAgents index with a named less() comparator, and buildCueLines for per-agent assembly. helpers.go drops from 705 to 533 lines; no behavior change (existing v2 cue/agent tests pass).