Skip to main content

render_m3u8

Function render_m3u8 

Source
pub fn render_m3u8(name: &str, entries: &[M3u8Entry<'_>]) -> String
Expand description

Render an extended-M3U8 playlist named name from entries, preserving their order.

Opens with #EXTM3U and #PLAYLIST:<name>, then per entry emits either an #EXTINF:<seconds>,<title> line plus the path, or a # (not in library) comment for an empty relative path (HARDENING L1). CR/LF in any field is folded to spaces so one field can never break the line structure.