m3u import.

During initial setup, it is sometimes necessary to import a large number of channels in Astra

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 web interface Astra, go to settings -> import tab and import the resulting script.

Image