navidrome/plugins/testdata/test-lyrics
Deluan 0ec7a818fb feat(plugins): content-sniff plugin lyrics for all formats
Replace model.ToLyrics (LRC/plain only) with model.ParseEmbedded so plugin
responses are content-sniffed for TTML, SRT, YAML, LRC, and plain text.
ParseEmbedded returns a LyricList, so the loop now flattens multiple tracks
per response entry.

The test-lyrics WASM plugin gains a "ttml" format mode (configured via
pdk.GetConfig) that returns a minimal TTML document; rebuilt with the
standard Go wasip1 toolchain (GOOS=wasip1 GOARCH=wasm). A new Ginkgo test
asserts Synced==true and the exact cue value, which the old plain-text path
could not produce.

GetLyrics doc comment updated to reflect content-sniffing; a later task will
retarget it to ParseLyrics once that function is introduced.
2026-06-19 14:15:07 -04:00
..
go.mod feat(plugins): add lyrics provider plugin capability (#5126) 2026-03-03 15:48:39 -05:00
go.sum feat(plugins): add lyrics provider plugin capability (#5126) 2026-03-03 15:48:39 -05:00
main.go feat(plugins): content-sniff plugin lyrics for all formats 2026-06-19 14:15:07 -04:00
manifest.json feat(plugins): add lyrics provider plugin capability (#5126) 2026-03-03 15:48:39 -05:00