# Plugin definition
from Plugins.Plugin import PluginDescriptor
+# Autostart
+def autostart(reason, **kwargs):
+ if "session" in kwargs:
+ try:
+ # for blue key activating in EPGSelection
+ EPGSelectionInit()
+ except:
+ pass
+
# Mainfunction
def main(session, *args, **kwargs):
s = session.nav.getCurrentService()
name = event and event.getEventName() or ''
session.open(EPGSearch, name, False)
+# Event Info
+def eventinfo(session, *args, **kwargs):
+ ref = session.nav.getCurrentlyPlayingServiceReference()
+ session.open(EPGSearchEPGSelection, ref, True)
+
# Movielist
def movielist(session, service, **kwargs):
serviceHandler = eServiceCenter.getInstance()
session.open(EPGSearch, name)
-# Autostart
-def autostart(reason, **kwargs):
- if "session" in kwargs:
- session = kwargs["session"]
- try:
- EPGSelectionInit() # for blue key activating in EPGSelection
- except: pass
-
-
def Plugins(**kwargs):
return [
PluginDescriptor(