mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
buildLyricCues (subsonic response) reimplemented the same fill-from-next / fallback / all-or-none end-time logic that normalizeCueLine (model) already ran at parse time. They operate on different groupings -- the response builder normalizes per-agent cue subsets, the model the whole line -- so they cannot be collapsed, but the algorithm itself was duplicated. Extract model.NormalizeCueEnds([]Cue, fallbackEnd) as the single implementation (now also clamping ends within the model line normalization), and have buildLyricCues delegate to it and only map to the response type.