-- Example: http://mediabay.tv/livetv/138-Sport__UZ -- Probe function. function probe() if vlc.access ~= "http" and vlc.access ~= "https" then return false end return vlc.path:match("mediabay.tv") end -- Parse function. function parse() local html = vlc.read(100000) -- get all contents of html page item = {} item.path = html:match("http[^'\"]+\.m3u8" ) item.title = html:match("([^<]+)" ) item.arturl = html:match("poster%s*=%s*'([^']+)") item.options = { ":http-user-agent=Mozilla/5.0"; ":http-referrer="..vlc.access.."://"..vlc.path } return { item } end