self.mutableList = self.getMutableList()
# add all services from the current list to internal marked set in listboxservicecontent
self.clearMarks() # this clears the internal marked set in the listboxservicecontent
- self.saved_title = self.instance.getTitle()
+ self.saved_title = self.getTitle()
pos = self.saved_title.find(')')
new_title = self.saved_title[:pos+1]
if type == EDIT_ALTERNATIVES:
self.mutableList = self.getMutableList()
self.movemode = True
self.pathChangeDisabled = True # no path change allowed in movemode
- self.saved_title = self.instance.getTitle()
+ self.saved_title = self.getTitle()
new_title = self.saved_title
pos = self.saved_title.find(')')
new_title = self.saved_title[:pos+1] + ' ' + _("[move mode]") + self.saved_title[pos+1:]
MODE_TV = 0
MODE_RADIO = 1
-# this makes it much simple to implement a selectable radio or tv mode :)
-service_types_tv = '1:7:1:0:0:0:0:0:0:0:(type == 1) || (type == 17) || (type == 195) || (type == 25) || (type == 134)'
-service_types_radio = '1:7:2:0:0:0:0:0:0:0:(type == 2)'
+# type 1 = digital television service
+# type 4 = nvod reference service (NYI)
+# type 17 = MPEG-2 HD digital television service
+# type 22 = advanced codec SD digital television
+# type 24 = advanced codec SD NVOD reference service (NYI)
+# type 25 = advanced codec HD digital television
+# type 27 = advanced codec HD NVOD reference service (NYI)
+# type 2 = digital radio sound service
+# type 10 = advanced codec digital radio sound service
+
+service_types_tv = '1:7:1:0:0:0:0:0:0:0:(type == 1) || (type == 17) || (type == 22) || (type == 25) || (type == 134) || (type == 195)'
+service_types_radio = '1:7:2:0:0:0:0:0:0:0:(type == 2) || (type == 10)'
class ChannelSelectionBase(Screen):
def __init__(self, session):
self.mode = MODE_TV
self.servicePath = self.servicePathTV
self.recallBouquetMode()
- title = self.instance.getTitle()
+ title = self.getTitle()
pos = title.find(" (")
if pos != -1:
title = title[:pos]
self.mode = MODE_RADIO
self.servicePath = self.servicePathRadio
self.recallBouquetMode()
- title = self.instance.getTitle()
+ title = self.getTitle()
pos = title.find(" (")
if pos != -1:
title = title[:pos]
return str
def buildTitleString(self):
- titleStr = self.instance.getTitle()
+ titleStr = self.getTitle()
pos = titleStr.find(']')
if pos == -1:
pos = titleStr.find(')')
class SimpleChannelSelection(ChannelSelectionBase):
def __init__(self, session, title):
ChannelSelectionBase.__init__(self, session)
- self.title = title
- self.onShown.append(self.__onExecCallback)
-
self["actions"] = ActionMap(["OkCancelActions", "TvRadioActions"],
{
"cancel": self.close,
"keyRadio": self.setModeRadio,
"keyTV": self.setModeTv,
})
+ self.title = title
+ self.onLayoutFinish.append(self.layoutFinished)
- def __onExecCallback(self):
- self.setTitle(self.title)
+ def layoutFinished(self):
self.setModeTv()
def channelSelected(self): # just return selected service