Skip to content

Commit

Permalink
Add search functionality for roku. (See Search in the roku ECP) (#10)
Browse files Browse the repository at this point in the history
This is the first step in adding search for roku from HA, and
ultimately haaska for connecting with the new alexa video skill api.
  • Loading branch information
keatontaylor authored and Brent Hughes committed Jun 19, 2017
1 parent 2c477f1 commit 8942f10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions roku/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ def command(*args):
for char in args[0]:
path = '/keypress/%s_%s' % (COMMANDS[name], char.upper())
self._post(path)
elif name == 'search':
keys = ['title', 'season']
params = dict(zip(keys, args))
path = '/search/browse'
self._post(path, params=params)
else:
path = '/keypress/%s' % COMMANDS[name]
self._post(path)
Expand Down

0 comments on commit 8942f10

Please sign in to comment.