During initial setup, it is sometimes necessary to import streams to Astra from the m3u playlist
pls = [[
Here we insert the contents of the imported m3u file
]]
local name = nil
for s in pls:gmatch("(.-)\n") do
if #s > 0 then
if s:sub(1, 1) == "#" then
if s:sub(2, 7) == "EXTINF" then
name = s:match(".*,(.*)")
end
else
if name ~= nil then
make_channel({ name = name, input = { s }, })
name = nil
end
end
end
end
Open the Astra web interface - go to tab settings->import
and import the resulting script