From: Ronny Strutz Date: Tue, 15 Nov 2005 15:03:54 +0000 (+0000) Subject: add lastService stuff X-Git-Tag: 2.6.0~5185 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/71f41aef9e77a7293841fb264225de305d2da8b4?hp=f89bd159dfbe3f019513241d4393f7d80ce59af5 add lastService stuff --- diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 2631827f..9435aff0 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -4,7 +4,7 @@ from Components.ServiceList import ServiceList from Components.ActionMap import ActionMap from EpgSelection import EPGSelection from enigma import eServiceReference, eEPGCache, eEPGCachePtr, eServiceCenter, eServiceCenterPtr, iMutableServiceListPtr -from Components.config import config +from Components.config import config, configElement, ConfigSubsection, configText from Screens.FixedMenu import FixedMenu @@ -79,7 +79,15 @@ class ChannelSelection(Screen): self.setRoot(eServiceReference("""1:0:1:0:0:0:0:0:0:0:(type == 1)""")) #self["okbutton"] = Button("ok", [self.channelSelected]) + + config.tv = ConfigSubsection(); + config.tv.lastservice = configElement("config.tv.lastservice", configText, "", 0); + print "lastservice:" + config.tv.lastservice.value + ref = eServiceReference(config.tv.lastservice.value) + print ref + self.session.nav.playService(ref) + class ChannelActionMap(ActionMap): def action(self, contexts, action): if action[:7] == "bouquet":