From e80e924bc658ca4fe1891b12c7ab281f967e3626 Mon Sep 17 00:00:00 2001 From: j-kaplan <22964771+j-kaplan@users.noreply.github.com> Date: Thu, 8 Feb 2018 19:29:17 -0700 Subject: [PATCH] Add support to launch tv tuner and optionally set channel --- roku/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roku/core.py b/roku/core.py index 1c80d8b..0ebe217 100644 --- a/roku/core.py +++ b/roku/core.py @@ -238,6 +238,9 @@ def launch(self, app): raise RokuException('this app belongs to another Roku') return self._post('/launch/%s' % app.id) + def channel(self, ch=""): + return self._post('/launch/tvinput.dtv?ch=%s' % ch) + def store(self, app): return self._post('/launch/11', params={'contentID': app.id})