X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/92ce4dc3481c29e42f860283a007e37c155ee40b..b17019f43527d615589ce2083fb3d2a9058f2c3c:/lib/python/Screens/MovieSelection.py diff --git a/lib/python/Screens/MovieSelection.py b/lib/python/Screens/MovieSelection.py index 82c9c7e5..add42abf 100644 --- a/lib/python/Screens/MovieSelection.py +++ b/lib/python/Screens/MovieSelection.py @@ -20,15 +20,15 @@ class ChannelContextMenu(FixedMenu): def __init__(self, session, csel, service): self.csel = csel self.service = service - + menu = [(_("back"), self.close), (_("delete..."), self.delete)] - + for p in plugins.getPlugins(PluginDescriptor.WHERE_MOVIELIST): menu.append((p.description, boundFunction(self.execPlugin, p))) - + FixedMenu.__init__(self, session, _("Movie Menu"), menu) self.skinName = "Menu" - + def execPlugin(self, plugin): plugin(session=self.session, service=self.service) @@ -89,6 +89,7 @@ class MovieSelection(Screen): { "cancel": self.abort, "ok": self.movieSelected, + "showEventInfo": self.showEventInformation, "contextMenu": self.doContext, }) self["actions"].csel = self @@ -96,11 +97,21 @@ class MovieSelection(Screen): self.lengthTimer = eTimer() self.lengthTimer.timeout.get().append(self.updateLengthData) - + self.inited = False + + def showEventInformation(self): + from Screens.EventView import EventViewSimple + from ServiceReference import ServiceReference + evt = self["list"].getCurrentEvent() + if evt: + self.session.open(EventViewSimple, evt, ServiceReference(self.getCurrent())) + def go(self): + if not self.inited: # ouch. this should redraw our "Please wait..."-text. # this is of course not the right way to do this. - self.delayTimer.start(10, 1) + self.delayTimer.start(10, 1) + self.inited=True def updateHDDData(self): self["list"].reload(eServiceReference("2:0:1:0:0:0:0:0:0:0:" + resolveFilename(SCOPE_HDD)))