absorb: playlist/m3u (M3U/M3U8 + HLS) and playlist/pls from playlist-luau 3fc7fd3, + a PLS writer; shared codecs/Url (RFC 3986, locate) and codecs/Text (BOM, CP1252, lines); tests vs urllib.parse.urljoin, Python cp1252, Python-written playlists

Two shared codecs added outside the assigned folders (a format never requires another format): codecs/Url and codecs/Text, used by the three playlist formats.
This commit is contained in:
4DBug committed 2026-10-31 08:55:44 -05:00
1 parent 17778cff1b
commit e3fba1c2ae
11 files changed
+1504

No files matched your search

+24
View File
@@ -98,6 +98,30 @@ local list: { Entry } = {
return require("@formats/archive/zip")
end,
},
{
name = "m3u",
category = "playlist",
path = "playlist/m3u",
extensions = { "m3u", "m3u8" },
mime = { "audio/x-mpegurl", "audio/mpegurl", "application/vnd.apple.mpegurl", "application/x-mpegurl" },
deps = { "core/Err", "core/Bytes", "Types", "codecs/Url", "codecs/Text" },
caps = { decode = true, encode = true, hls = true },
load = function()
return require("@formats/playlist/m3u")
end,
},
{
name = "pls",
category = "playlist",
path = "playlist/pls",
extensions = { "pls" },
mime = { "audio/x-scpls", "audio/scpls" },
deps = { "core/Err", "core/Bytes", "Types", "codecs/Url", "codecs/Text" },
caps = { decode = true, encode = true },
load = function()
return require("@formats/playlist/pls")
end,
},
}
return list