mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
mapLyrics() used a dedicated rawPairs()/rawTags path solely to bypass the 32KB lyrics truncation cap (the comment claiming sanitization "strips XML" was inaccurate -- pair-type tags are only truncated, never stripped). That duplicated every file s tags into a second lowercased map on the scan hot path. Instead, raise the lyrics maxLength so the normal Pairs() path keeps large word-timed TTML/Enhanced-LRC intact, and remove rawTags/rawPairs. The existing ">32KB embedded TTML" test continues to pass through Pairs().