X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b9ae0da9cfa8219ea7228cb99a3f1fe55444506b..9a9d54ceb81e2f7637af6c5153f248208138f29a:/lib/python/Screens/ChannelSelection.py diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index b69c8b37..565655f9 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -210,8 +210,8 @@ class ChannelSelectionBase(Screen): def __init__(self, session): Screen.__init__(self, session) - self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') - #self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet') + #self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') + self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet') self["key_red"] = Button("All") #self["key_green"] = Button("Provider") @@ -311,9 +311,10 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit): config.tv.lastservice = configElement("config.tv.lastservice", configText, "", 0); config.tv.lastroot = configElement("config.tv.lastroot", configText, "", 0); - if config.tv.lastroot.value == "": - self.servicelist.setRoot(eServiceReference("""1:0:1:0:0:0:0:0:0:0:(type == 1)""")) - + #if config.tv.lastroot.value == "": + #allways defaults to fav + #self.servicelist.setRoot(eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet')) + self.showFavourites() self.session.nav.playService(eServiceReference(config.tv.lastservice.value)) class ChannelActionMap(NumberActionMap): @@ -366,6 +367,7 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit): def setRoot(self, root): if not self.movemode: self.setRootBase(root) + self.saveRoot(root) #called from infoBar and channelSelected def zap(self): @@ -389,7 +391,7 @@ class ChannelSelection(ChannelSelectionBase, ChannelSelectionEdit): def lastService(self): self.lastServiceTimer.stop() #zap to last running tv service - self.setRoot(eServiceReference(config.tv.lastroot.value)) + #self.setRoot(eServiceReference(config.tv.lastroot.value)) self.session.nav.playService(eServiceReference(config.tv.lastservice.value)) class SimpleChannelSelection(ChannelSelectionBase): @@ -398,10 +400,10 @@ class SimpleChannelSelection(ChannelSelectionBase): self.title = title self.onShown.append(self.onExecCallback) - class ChannelActionMap(ActionMap): + class ChannelActionMap(NumberActionMap): def action(self, contexts, action): if not self.csel.enterBouquet(action): - ActionMap.action(self, contexts, action) + NumberActionMap.action(self, contexts, action) self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions", "ContextMenuActions"], { "cancel": self.cancel,