def POST(self, channel): ''' Roku-HDHomerun gives ply its display type as query string attached to tune POST method, ply selects optimal HDHomerun encode ''' ''' Tuning w/o transcode query selects HDHomeRun's default profile ''' hdhr_quality = "" get_data = web.input(quality="") if get_data.quality == "HD": hdhr_quality = "?transcode=heavy" elif get_data.quality == "SD": hdhr_quality = "?transcode=internet480" devices = db.getDevices(dbase) hdhr.stream.startStream(channel, devices, hdhr_quality)
def GET(self): netDevices = hdhr.cfg.getDevices() dbDevices = db.getDevices(dbase) return render.setup(netDevices, dbDevices)
def POST(self, channel): get_data = web.input(quality="heavy") devices = db.getDevices(dbase) hdhr.stream.startStream(channel,devices,get_data.quality)
def POST(self, channel): get_data = web.input(quality="heavy") devices = db.getDevices(dbase) hdhr.stream.startStream(channel, devices, get_data.quality)
def GET(self): netDevices = hdhr.cfg.getDevices() dbDevices = db.getDevices(dbase) return render.setup(netDevices,dbDevices)