aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-29 21:50:37 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-11-29 21:50:37 +0000
commitd04dbe0474fd824641bba02a0852c00741a99f09 (patch)
treee13e43c3aecddaf08c15c9bd7e64fbc7f71d5ccb /lib/python
parent02ccc66eb625545cedf7222b0467c077f43c4150 (diff)
downloadenigma2-d04dbe0474fd824641bba02a0852c00741a99f09.tar.gz
enigma2-d04dbe0474fd824641bba02a0852c00741a99f09.zip
on startup always default to favs
(todo: add optional select "lastroot" - its already saved)
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/ChannelSelection.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py
index 27c4e209..332a72b2 100644
--- a/lib/python/Screens/ChannelSelection.py
+++ b/lib/python/Screens/ChannelSelection.py
@@ -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):