--[[ plutotv_us.lua minimal example entry for vevo by us plutotv ]] json = require "json" if #arg < 1 then return nil end local _url = arg[1] local ret = {} function getVideoData(url) -- Generate stream address http = "http://stitcher-ipv4.pluto.tv/v1/stitch/embed/hls/channel/" token = "?advertisingId=channel&appName=rokuchannel&appVersion=1.0&bmodel=bm1&channel_id=channel&content=channel&content_rating=ROKU_ADS_CONTENT_RATING&content_type=livefeed&coppa=false&deviceDNT=1&deviceId=channel&deviceMake=rokuChannel&deviceModel=web&deviceType=rokuChannel&deviceVersion=1.0&embedPartner=rokuChannel&genre=ROKU_ADS_CONTENT_GENRE&is_lat=1&platform=web&rdid=channel&studio_id=viacom&tags=ROKU_CONTENT_TAGS&profilesFromStream=true" local count = 0 entry = {} entry['url'] = http .. url .. "livestitch/master.m3u8" .. token count = 1 ret[count] = {} ret[count] = entry return count end if (getVideoData(_url) > 0) then return json:encode(ret) end return ""