summaryrefslogtreecommitdiff
path: root/src/pywebvi/pywebvi.py
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2013-08-08 17:16:00 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2013-08-08 17:16:00 +0300
commitb3bdb5e6a1515c938fec0661bb56f4b39538195c (patch)
tree874355a1601ed713a8e4dc4e78806862f369fd63 /src/pywebvi/pywebvi.py
parent78e8b44d32231a45086fe3c7e1465e8bb60b871c (diff)
downloadvdr-plugin-webvideo-b3bdb5e6a1515c938fec0661bb56f4b39538195c.tar.gz
vdr-plugin-webvideo-b3bdb5e6a1515c938fec0661bb56f4b39538195c.tar.bz2
Combine quvi and external downloader pipes into a pipe that reads a
menu written by an external shell script (src/menuscripts). Add YLE Areena as an example script (TODO: downloading rtmp streams).
Diffstat (limited to 'src/pywebvi/pywebvi.py')
-rw-r--r--src/pywebvi/pywebvi.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pywebvi/pywebvi.py b/src/pywebvi/pywebvi.py
index b3df416..3815d0f 100644
--- a/src/pywebvi/pywebvi.py
+++ b/src/pywebvi/pywebvi.py
@@ -20,6 +20,7 @@ _WEBVI_CONFIG_TEMPLATE_PATH = 0
_WEBVI_CONFIG_DEBUG = 1
_WEBVI_CONFIG_TIMEOUT_CALLBACK = 2
_WEBVI_CONFIG_TIMEOUT_DATA = 3
+_WEBVI_CONFIG_MENU_SCRIPT_PATH = 4
class WebviState:
NOT_FINISHED = 0
@@ -107,6 +108,15 @@ class WebviContext:
set_config.restype = raise_if_webvi_result_not_ok
set_config(self.handle, _WEBVI_CONFIG_TEMPLATE_PATH, path)
+ def set_menu_script_path(self, path):
+ if self.handle is None:
+ return
+
+ set_config = libwebvi.webvi_set_config
+ set_config.argtypes = [c_long, c_int, c_char_p]
+ set_config.restype = raise_if_webvi_result_not_ok
+ set_config(self.handle, _WEBVI_CONFIG_MENU_SCRIPT_PATH, path)
+
def set_debug(self, enabled):
if self.handle is None:
return