yet another fix
authorMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Mon, 22 Jun 2009 20:07:02 +0000 (20:07 +0000)
committerMoritz Venn <ritzmo@users.schwerkraft.elitedvb.net>
Mon, 22 Jun 2009 20:07:02 +0000 (20:07 +0000)
epgsearch/src/plugin.py

index 0d61280..584ca14 100644 (file)
@@ -17,6 +17,15 @@ from EPGSearch import EPGSearch, EPGSearchEPGSelection, EPGSelectionInit
 # 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()
@@ -25,6 +34,11 @@ def main(session, *args, **kwargs):
        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()
@@ -33,15 +47,6 @@ def movielist(session, service, **kwargs):
 
        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(