Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Insert this script into Settings -> Import
- -- Between [[ and ]] insert your m3u file
- -- Press import
- pls = [[
- ]]
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement