def __init__(self, type): Converter.__init__(self, type) if type == "Name" or not len(str(type)): self.type = self.NAME elif type == "Number": self.type = self.NUMBER elif type == "Bouquet": self.type = self.BOUQUET elif type == "Provider": self.type = self.PROVIDER elif type == "Reference": self.type = self.REFERENCE elif type == "OrbitalPos": self.type = self.ORBPOS elif type == "TpansponderInfo": self.type = self.TPRDATA elif type == "Satellite": self.type = self.SATELLITE elif type == "AllRef": self.type = self.ALLREF else: self.type = self.FORMAT self.sfmt = type[:] try: if (self.type == 1 or (self.type == 9 and '%n' in self.sfmt)) and correctChannelNumber: ChannelNumberClasses.append(self.forceChanged) except: pass self.refstr = self.isStream = self.ref = self.info = self.what = self.tpdata = None self.Timer = eTimer() self.Timer.callback.append(self.neededChange) self.IPTVcontrol = self.isAdditionalService(type=0) self.AlternativeControl = self.isAdditionalService(type=1)
def __init__(self, type): Converter.__init__(self, type) self.colors = (0x0000FF00, 0x00FFFF00, 0x007F7F7F) # tuner active, busy, available colors self.epgQuery = eEPGCache.getInstance().lookupEventTime if DBG: j00zekDEBUG('[j00zekModServiceName2:__init__] >>> type=%s' % type) if type == "Name" or not len(str(type)): self.type = self.NAME elif type == "Number": self.type = self.NUMBER elif type == "Bouquet": self.type = self.BOUQUET elif type == "Provider": self.type = self.PROVIDER elif type == "Reference": self.type = self.REFERENCE elif type == "OrbitalPos": self.type = self.ORBPOS elif type == "TpansponderInfo": self.type = self.TPRDATA elif type == "Satellite": self.type = self.SATELLITE elif type == "AllRef": self.type = self.ALLREF elif type == 'UseVFDcfg': self.type = self.USE_VFD_CFG elif type == 'UseCFG': self.type = self.USE_CFG else: self.type = self.FORMAT self.sfmt = type[:] try: if (self.type == self.NUMBER or (self.type == self.FORMAT or self.type == self.USE_CFG or self.type == self.USE_VFD_CFG and '%n' in self.sfmt)) and correctChannelNumber: ChannelNumberClasses.append(self.forceChanged) except: pass self.refstr = self.isStream = self.ref = self.info = self.what = self.tpdata = None self.Timer = eTimer() self.Timer.callback.append(self.neededChange) self.IPTVcontrol = self.isAdditionalService(type=0) self.AlternativeControl = self.isAdditionalService(type=1)