Deluan
72a69306be
refactor(lyrics): unify parser dispatch and centralize empty-list invariant
...
Apply thermo-nuclear review findings (behavior-preserving):
- Replace the suffix switch + three single-use closure adapters
(parseTTMLKnown/parseSRTKnown + inline YAML closure) with a
bySuffix map of a single lyricParser(lang, contents) signature.
Normalize parseTTMLWithDefaultLang/parseSRTWithLanguage to that
(lang, contents) order so no adapter glue is needed.
- Collapse the parallel sniffLyrics engine into one parseFirstMatch
primitive shared by both the suffix and content-sniff paths
(sniffOrder candidate list). TTML stays gated via parseTTMLIfDocument
in sniff mode to avoid running the XML decoder on plain/LRC text.
- Add LyricList.MarshalJSON so empty/nil always serializes to [] (the
lyrics column invariant), in one canonical place. Delete the
migration's nil-guard, which the marshaler now subsumes.
Behavior verified unchanged: full suite + race + e2e green.
2026-06-19 15:52:01 -04:00
..
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-19 15:52:01 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2025-02-19 20:35:17 -05:00
2026-06-18 09:58:43 -04:00
2024-08-03 13:37:21 -04:00
2024-10-19 20:46:54 -04:00
2024-10-26 14:06:34 -04:00
2026-06-18 09:58:43 -04:00
2025-05-21 22:16:10 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2025-06-13 17:27:57 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2025-06-28 18:43:11 -04:00
2025-06-28 19:00:13 -04:00
2025-06-30 17:11:54 -04:00
2025-07-18 18:41:12 -04:00
2025-11-06 14:41:09 -05:00
2025-11-24 23:18:05 -05:00
2025-12-06 11:07:18 -05:00
2026-01-05 19:05:11 -05:00
2026-01-14 19:22:48 -05:00
2026-01-18 17:42:42 -05:00
2026-06-18 09:58:43 -04:00
2026-02-28 10:59:13 -05:00
2026-03-01 14:07:18 -05:00
2026-03-02 11:39:59 -05:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00
2026-03-15 22:19:55 -04:00
2026-03-16 07:55:22 -04:00
2026-03-18 18:57:33 -04:00
2026-04-05 12:56:32 -04:00
2026-04-10 19:29:20 -04:00
2026-06-18 09:58:43 -04:00
2026-05-22 18:00:13 -03:00
2026-06-12 15:53:37 -04:00
2026-06-13 13:15:20 -04:00
2026-06-18 09:58:43 -04:00
2026-06-18 09:58:43 -04:00