-- Example: -- http://www.ustream.tv/channel/iss-hdev-payload -- http://www.ustream.tv/channel/animalplanetlive -- Probe function. function probe() if vlc.access ~= "http" and vlc.access ~= "https" then return false end return vlc.path:match("www.ustream.tv") end -- Parse function. function parse() local html = vlc.read(300000) -- get all contents of html page item = {} item.path = html:match("\"stream\":{[^}]*\"hls\":\"(.-)\""):gsub("\\/", "/") item.title = html:match("og:title\" content=\"(.-)\"") item.arturl = html:match("og:image\" content=\"(.-)\"") item.options = { ":http-user-agent=Mozilla/5.0"; ':http-referrer='..vlc.access.."://"..vlc.path } return { item } end