def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.type = self.EXPERTINFO self.poll_interval = 30000 self.poll_enabled = True self.ar_fec = ['Auto', '1/2', '2/3', '3/4', '5/6', '7/8', '3/5', '4/5', '8/9', '9/10', 'None', 'None', 'None', 'None', 'None'] self.ar_pol = ['H', 'V', 'CL', 'CR', 'na', 'na', 'na', 'na', 'na', 'na', 'na', 'na'] self.satNames = {} self.readSatXml()
def __init__(self, type): Converter.__init__(self, type) self.type, self.interesting_events = {'HasTelext': (self.HAS_TELETEXT, (iPlayableService.evUpdatedInfo,)), 'IsMultichannel': (self.IS_MULTICHANNEL, (iPlayableService.evUpdatedInfo,)), 'IsStereo': (self.AUDIO_STEREO, (iPlayableService.evUpdatedInfo,)), 'IsCrypted': (self.IS_CRYPTED, (iPlayableService.evUpdatedInfo,)), 'IsWidescreen': (self.IS_WIDESCREEN, (iPlayableService.evVideoSizeChanged,)), 'IsNotWidescreen': (self.IS_NOT_WIDESCREEN, (iPlayableService.evVideoSizeChanged,)), 'SubservicesAvailable': (self.SUBSERVICES_AVAILABLE, (iPlayableService.evUpdatedEventInfo,)), 'VideoWidth': (self.XRES, (iPlayableService.evVideoSizeChanged,)), 'VideoHeight': (self.YRES, (iPlayableService.evVideoSizeChanged,)), 'AudioPid': (self.APID, (iPlayableService.evUpdatedInfo,)), 'VideoPid': (self.VPID, (iPlayableService.evUpdatedInfo,)), 'PcrPid': (self.PCRPID, (iPlayableService.evUpdatedInfo,)), 'PmtPid': (self.PMTPID, (iPlayableService.evUpdatedInfo,)), 'TxtPid': (self.TXTPID, (iPlayableService.evUpdatedInfo,)), 'TsId': (self.TSID, (iPlayableService.evUpdatedInfo,)), 'OnId': (self.ONID, (iPlayableService.evUpdatedInfo,)), 'Sid': (self.SID, (iPlayableService.evUpdatedInfo,)), 'Framerate': (self.FRAMERATE, (iPlayableService.evVideoSizeChanged, iPlayableService.evUpdatedInfo)), 'TransferBPS': (self.TRANSFERBPS, (iPlayableService.evUpdatedInfo,)), 'HasHBBTV': (self.HAS_HBBTV, (iPlayableService.evUpdatedInfo, iPlayableService.evHBBTVInfo)), 'AudioTracksAvailable': (self.AUDIOTRACKS_AVAILABLE, (iPlayableService.evUpdatedInfo,)), 'SubtitlesAvailable': (self.SUBTITLES_AVAILABLE, (iPlayableService.evUpdatedInfo,)), 'Editmode': (self.EDITMODE, (iPlayableService.evUpdatedInfo,)), 'IsStream': (self.IS_STREAM, (iPlayableService.evUpdatedInfo,)), 'IsSD': (self.IS_SD, (iPlayableService.evVideoSizeChanged,)), 'IsHD': (self.IS_HD, (iPlayableService.evVideoSizeChanged,)), 'Is1080': (self.IS_1080, (iPlayableService.evVideoSizeChanged,)), 'Is720': (self.IS_720, (iPlayableService.evVideoSizeChanged,)), 'Is576': (self.IS_576, (iPlayableService.evVideoSizeChanged,)), 'Is480': (self.IS_480, (iPlayableService.evVideoSizeChanged,))}[type]
def __init__(self, type): Converter.__init__(self, type) self.CHANSEL = None self.type = { "CurrentRef": self.CURRENT, "ServicelistRef": self.EVENT }[type]
def __init__(self, arguments): Converter.__init__(self, arguments) self.italicColor = getEscapeColorFromHexString("FFFFFF") self.boldColor = getEscapeColorFromHexString("FFFFFF") self.defaultColor = getEscapeColorFromHexString("FFFFFF") self.indexes = [] arguments = arguments.split(',') for arg in arguments: if arg.startswith("Index"): self.indexes = [int(i) for i in arg.split(':')[1].split('.')] print "[KodiToE2List] self.indexes = %s"%str(self.indexes) if "ColorCodes" in arguments: self.type = self.TYPE_COLOR_CODES print "[KodiToE2List] self.type = self.TYPE_COLOR_CODES" else: self.type = self.TYPE_TEXT print "[KodiToE2List] self.type = self.TYPE_TEXT" if self.type == self.TYPE_COLOR_CODES: for arg in arguments: if arg.split(':')[0] == "Bold": self.boldColor = getEscapeColorFromHexString(arg.split(':')[1]) elif arg.split(':')[0] == "Italic": self.italicColor = getEscapeColorFromHexString(arg.split(':')[1]) elif arg.split(':')[0] == "Default": self.defaultColor = getEscapeColorFromHexString(arg.split(':')[1])
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.type = {'ExpertInfo': self.SMART_INFO_H}[type] self.poll_interval = 30000 self.poll_enabled = True self.ar_fec = ['Auto', '1/2', '2/3', '3/4', '5/6', '7/8', '3/5', '4/5', '8/9', '9/10', 'None', 'None', 'None', 'None', 'None'] self.ar_pol = ['H', 'V', 'CL', 'CR', 'na', 'na', 'na', 'na', 'na', 'na', 'na', 'na']
def __init__(self, type): Converter.__init__(self, type) self.type = { "Result" : self.RESULT, "ResultText" : self.RESULTTEXT, "Volume" : self.VOLUME, "IsMuted" : self.ISMUTED }[type]
def __init__(self, type): Converter.__init__(self, type) self.type, self.interesting_events = { "HasTelext": (self.HAS_TELETEXT, (iPlayableService.evUpdatedInfo,)), "IsMultichannel": (self.IS_MULTICHANNEL, (iPlayableService.evUpdatedInfo,)), "IsCrypted": (self.IS_CRYPTED, (iPlayableService.evUpdatedInfo,)), "IsWidescreen": (self.IS_WIDESCREEN, (iPlayableService.evVideoSizeChanged,)), "SubservicesAvailable": (self.SUBSERVICES_AVAILABLE, (iPlayableService.evUpdatedEventInfo,)), "VideoWidth": (self.XRES, (iPlayableService.evVideoSizeChanged,)), "VideoHeight": (self.YRES, (iPlayableService.evVideoSizeChanged,)), "AudioPid": (self.APID, (iPlayableService.evUpdatedInfo,)), "VideoPid": (self.VPID, (iPlayableService.evUpdatedInfo,)), "PcrPid": (self.PCRPID, (iPlayableService.evUpdatedInfo,)), "PmtPid": (self.PMTPID, (iPlayableService.evUpdatedInfo,)), "TxtPid": (self.TXTPID, (iPlayableService.evUpdatedInfo,)), "TsId": (self.TSID, (iPlayableService.evUpdatedInfo,)), "OnId": (self.ONID, (iPlayableService.evUpdatedInfo,)), "Sid": (self.SID, (iPlayableService.evUpdatedInfo,)), "Framerate": (self.FRAMERATE, (iPlayableService.evVideoSizeChanged,iPlayableService.evUpdatedInfo,)), "TransferBPS": (self.TRANSFERBPS, (iPlayableService.evUpdatedInfo,)), "HasHBBTV": (self.HAS_HBBTV, (iPlayableService.evUpdatedInfo,iPlayableService.evHBBTVInfo,)), "AudioTracksAvailable": (self.AUDIOTRACKS_AVAILABLE, (iPlayableService.evUpdatedInfo,)), "SubtitlesAvailable": (self.SUBTITLES_AVAILABLE, (iPlayableService.evUpdatedInfo,)), "Editmode": (self.EDITMODE, (iPlayableService.evUpdatedInfo,)), "IsStream": (self.IS_STREAM, (iPlayableService.evUpdatedInfo,)), }[type]
def __init__(self, type): Converter.__init__(self, type) self.epgcache = eEPGCache.getInstance() if type == "Description": self.type = self.SHORT_DESCRIPTION elif type == "ExtendedDescription": self.type = self.EXTENDED_DESCRIPTION elif type == "FullDescription": self.type = self.FULL_DESCRIPTION elif type == "ID": self.type = self.ID elif type == "NameNow" or type == "NowName": self.type = self.NAME_NOW elif type == "NameNext" or type == "NextName": self.type = self.NAME_NEXT elif type == "Genre": self.type = self.GENRE elif type == "Rating": self.type = self.RATING elif type == "SmallRating": self.type = self.SRATING elif type == "NextDescription": self.type = self.NEXT_DESCRIPTION elif type == "ThirdName": self.type = self.THIRD_NAME elif type == "ThirdDescription": self.type = self.THIRD_DESCRIPTION else: self.type = self.NAME
def changed(self, what): if what[0] is self.CHANGED_SPECIFIC: self.index = False self.num = None Converter.changed(self, what) elif what[0] is self.CHANGED_POLL: self.downstream_elements.changed(what)
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) args = type.split(',') if len(args) != 2: raise ElementError("type must contain exactly 2 arguments") type = args.pop(0) invisible = args.pop(0) if type == 'SatInfo': self.type = self.SATINFO elif type == 'VeryShortCaid': self.type = self.VERYSHORTCAID elif type == 'VeryShortReader': self.type = self.VERYSHORTREADER elif type == 'ShortReader': self.type = self.SHORTREADER elif type == 'Normal': self.type = self.NORMAL elif type == 'Long': self.type = self.LONG else: self.type = self.VERYLONG if invisible == "FTAInvisible": self.invisible = self.FTAINVISIBLE else: self.invisible = self.FTAVISIBLE self.poll_interval = 1000 self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) self.epgcache = eEPGCache.getInstance() args = type.split(',') if len(args) != 2: raise ElementError("type must contain exactly 2 arguments") type = args.pop(0) showDuration = args.pop(0) if type == "Event1": self.type = self.Event1 elif type == "Event2": self.type = self.Event2 elif type == "Event3": self.type = self.Event3 elif type == "PrimeTime": self.type = self.PrimeTime else: self.type = self.Event0 if showDuration == "noDuration": self.showDuration = self.noDuration elif showDuration == "onlyDuration": self.showDuration = self.onlyDuration elif showDuration == "showDuration": self.showDuration = self.withDuration elif showDuration == "shortDescription": self.showDuration = self.shortDescription else: self.showDuration = self.longDescription
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) type = type.split(',') self.shortFormat = 'Short' in type self.fullFormat = 'Full' in type if 'HddTemp' in type: self.type = self.HDDTEMP elif 'LoadAvg' in type: self.type = self.LOADAVG elif 'MemTotal' in type: self.type = self.MEMTOTAL elif 'MemFree' in type: self.type = self.MEMFREE elif 'SwapTotal' in type: self.type = self.SWAPTOTAL elif 'SwapFree' in type: self.type = self.SWAPFREE elif 'UsbInfo' in type: self.type = self.USBINFO elif 'HddInfo' in type: self.type = self.HDDINFO elif 'DriverInfo' in type: self.type = self.DRIVERINFO elif 'SystemTemp' in type: self.type = self.SYSTEMTEMP else: self.type = self.FLASHINFO if self.type in (self.FLASHINFO, self.HDDINFO, self.USBINFO): self.poll_interval = 5000 else: self.poll_interval = 1000 self.poll_enabled = True
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.epgcache = eEPGCache.getInstance() if type == "Description": self.type = self.SHORT_DESCRIPTION elif type == "ExtendedDescription": self.type = self.EXTENDED_DESCRIPTION elif type == "FullDescription": self.type = self.FULL_DESCRIPTION elif type == "ID": self.type = self.ID elif type == "NameNow": self.type = self.NAME_NOW elif type == "NameNext": self.type = self.NAME_NEXT elif type == "NextName": self.type = self.NEXT_NAME elif type == "NextDescription": self.type = self.NEXT_DESCRIPTION elif type == "Genre": self.type = self.GENRE elif type == "Rating": self.type = self.RATING elif type == "SmallRating": self.type = self.SRATING elif type == "Pdc": self.type = self.PDC elif type == "PdcTime": self.type = self.PDCTIME elif type == "PdcTimeShort": self.type = self.PDCTIMESHORT elif type == "IsRunningStatus": self.type = self.ISRUNNINGSTATUS else: self.type = self.NAME
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.type = type self.poll_interval = 1000 self.poll_enabled = True self.feraw = self.fedata = self.updateFEdata = None
def changed(self, what): if what[0] == self.CHANGED_SPECIFIC: if what[1] == iPlayableService.evStart: self.initTimer.start(100, True) elif what[1] == iPlayableService.evEnd: self.clearData() Converter.changed(self, what)
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) self.type = type self.systemCaids = {"26":"biss","4A":"dre","05":"via","01":"sec","06":"ird","17":"bet","18":"nag","09":"nds","0B":"con","0D":"crw"} self.poll_interval = 1000 self.poll_enabled = True
def getVideoBitrateData(self, value, status): # value = rate in kbit/s, status ( 1 = ok || 0 = nok (zapped?)) if status: self.video = value else: self.videoBitrate = None self.video = 0 Converter.changed(self, (self.CHANGED_POLL,))
def getAudioBitrateData(self, value, status): if status: self.audio = value else: self.audioBitrate = None self.audio = 0 Converter.changed(self, (self.CHANGED_POLL,))
def __init__(self, type): Converter.__init__(self, type) self.i = 0 self.SatLst = {} self.SatLst2 = {} self.SatNameLst = {} self.getServList(eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) || (type == 17) || (type == 195) || (type == 25) FROM BOUQUET "bouquets.tv" ORDER BY bouquet')) self.getServList(eServiceReference('1:7:2:0:0:0:0:0:0:0:(type == 2) FROM BOUQUET "bouquets.radio" ORDER BY bouquet')) self.CreateSatList() if type == "All": self.type = self.ALL elif type == "Freq": self.type = self.FREQ elif type == "SR": self.type = self.SR elif type == "Polar": self.type = self.POLAR elif type == "FEC": self.type = self.FEC elif type == "Ver": self.type = self.VER elif type == "ServNum": self.type = self.SERVNUM elif type == "SatName": self.type = self.SATNAME elif type == "ServRef": self.type = self.SERVREF elif type == "Tst": self.type = self.TST else: self.type = self.ALL
def changed(self, what): if what[0] is self.CHANGED_SPECIFIC: if what[1] is iPlayableService.evStart or what[1] is iPlayableService.evUpdatedInfo: self.initTimer.start(500, True) elif what[1] is iPlayableService.evEnd: self.clearData() Converter.changed(self, what)
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) self.type = type self.systemCaids = {'06': 'I', '01': 'S', '18': 'N', '05': 'V', '0B': 'CO', '17': 'BC', '0D': 'CW', '4A': 'DC', '55': 'BG', '09': 'NDS'} self.poll_interval = 2000 self.poll_enabled = True if type == 'EcmInfo': self.type = self.ECMINFO elif type == 'OnlineTest': self.type = self.ONLINETEST elif type == 'TempInfo': self.type = self.TEMPINFO elif type == 'FanInfo': self.type = self.FANINFO else: self.type = self.ALL
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.paramert_str = '' if type.startswith('capacity'): self.type = self.capacity self.device = type.split()[-1].strip() elif type.startswith('free'): self.type = self.free self.device = type.split()[-1].strip() elif type.startswith('model'): self.type = self.model self.device = type.split()[-1].strip() elif type.startswith('fsystem'): self.type = self.fsystem self.device = type.split()[-1].strip() elif type.startswith('dpoint'): self.type = self.dpoint self.device = type.split()[-1].strip() elif type.startswith('Format:'): self.type = self.format self.paramert_str = type self.poll_interval = 2000 self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) if type == "city": self.type = self.city elif type == "country": self.type = self.country elif type == "direction": self.type = self.direction elif type == "speed": self.type = self.speed elif type == "humidity": self.type = self.humidity elif type == "visibility": self.type = self.visibility elif type == "pressure": self.type = self.pressure elif type == "pressurenm": self.type = self.pressurenm elif type == "text": self.type = self.wtext elif type == "temp": self.type = self.temp elif type == "picon": self.type = self.picon self.poll_interval = time_update_ms self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.poll_enabled = True 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 else: self.type = self.FORMAT self.sfmt = type[:] self.what = self.tpdata = None self.Timer = eTimer() self.Timer.callback.append(self.neededChange)
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) if type == "link": self.type = self.link elif type == "level": self.type = self.level elif type == "noise": self.type = self.noise elif type == "linkqua": self.type = self.linkqua elif type == "bitrate": self.type = self.bitrate elif type == "ssid": self.type = self.ssid elif type == "encryption": self.type = self.encryption elif type == "wifilabel": self.type = self.wifilabel elif type == "wifionoff": self.type = self.wifionoff elif type == "linklabel": self.type = self.linklabel elif type == "levellabel": self.type = self.levellabel elif type == "noiselabel": self.type = self.noiselabel elif type == "bitratelabel": self.type = self.bitratelabel elif type == "ssidlabel": self.type = self.ssidlabel elif type == "encryptlabel": self.type = self.encryptlabel self.poll_interval = 3000 self.poll_enabled = True
def changed(self, what): if what[0] != self.CHANGED_SPECIFIC or what[1] in self.interesting_events: Converter.changed(self, what) elif self.need_wa: if self.getValue() != -1: Converter.changed(self, (self.CHANGED_SPECIFIC, iPlayableService.evVideoSizeChanged)) self.need_wa = False
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 == "xSID": self.type = self.XSID elif type == "xAPID": self.type = self.XAPID elif type == "xVPID": self.type = self.XVPID else: self.type = self.FORMAT self.sfmt = type[:] self.what = self.tpdata = None self.Timer = eTimer() self.Timer.callback.append(self.neededChange)
def __init__(self, type): Converter.__init__(self, type) self.epgcache = eEPGCache.getInstance() if type == "Description" or type == "Short": self.type = self.SHORT_DESCRIPTION elif type == "ExtendedDescription": self.type = self.EXTENDED_DESCRIPTION elif type == "FullDescription" or type == "ShortOrExtendedDescription": self.type = self.FULL_DESCRIPTION elif type == "ID": self.type = self.ID elif type == "NextName": self.type = self.NEXT_NAME elif type == "NextNameNext": self.type = self.NEXT_NAME_NEXT elif type == "NextNameNextWithOutTime": self.type = self.NEXT_NAME_NEXTWT elif type == "NextNameWithOutTime": self.type = self.NEXT_NAMEWT elif type == "NextDescription" or type == "NextEvent": self.type = self.NEXT_DESCRIPTION elif type == "NextEventList": self.type = self.NEXT_EVENT_LIST elif type == "NextEventListWithOutTime": self.type = self.NEXT_EVENT_LISTWT elif type == "NextEventList2": self.type = self.NEXT_EVENT_LIST2 elif type == "NextEventListWithOutTime2": self.type = self.NEXT_EVENT_LISTWT2 elif type == "NextTimeDuration": self.type = self.NEXT_TIME_DURATION else: self.type = self.NAME
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) type = type.split(',') self.shortFormat = "Short" in type self.fullFormat = "Full" in type if "HddTemp" in type: self.type = self.HDDTEMP elif "LoadAvg" in type: self.type = self.LOADAVG elif "MemTotal" in type: self.type = self.MEMTOTAL elif "MemFree" in type: self.type = self.MEMFREE elif "SwapTotal" in type: self.type = self.SWAPTOTAL elif "SwapFree" in type: self.type = self.SWAPFREE elif "UsbInfo" in type: self.type = self.USBINFO elif "HddInfo" in type: self.type = self.HDDINFO else: self.type = self.FLASHINFO if self.type in (self.FLASHINFO,self.HDDINFO,self.USBINFO): self.poll_interval = 5000 else: self.poll_interval = 1000 self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) if type == "apid": self.type = self.apid elif type == "vpid": self.type = self.vpid elif type == "sid": self.type = self.sid elif type == "onid": self.type = self.onid elif type == "tsid": self.type = self.tsid elif type == "prcpid": self.type = self.prcpid elif type == "caids": self.type = self.caids elif type == "pmtpid": self.type = self.pmtpid elif type == "txtpid": self.type = self.txtpid elif type == "tsid": self.type = self.tsid elif type == "xres": self.type = self.xres elif type == "yres": self.type = self.yres elif type == "atype": self.type = self.atype elif type == "vtype": self.type = self.vtype elif type == "avtype": self.type = self.avtype elif type == "fps": self.type = self.fps elif type == "tbps": self.type = self.tbps elif type == "VideoWidth": self.type = self.XRES elif type == "VideoHeight": self.type = self.YRES elif type == "IsWidescreen": self.type = self.IS_WIDESCREEN elif type == "HasTelext": self.type = self.HAS_TELETEXT elif type == "IsMultichannel": self.type = self.IS_MULTICHANNEL elif type == "IsCrypted": self.type = self.IS_CRYPTED elif type == "IsFta": self.type = self.IS_FTA elif type == "HasHBBTV": self.type = self.HAS_HBBTV elif type == "SubservicesAvailable": self.type = self.SUBSERVICES_AVAILABLE elif type == "AudioTracksAvailable": self.type = self.AUDIOTRACKS_AVAILABLE elif type == "SubtitlesAvailable": self.type = self.SUBTITLES_AVAILABLE elif type == "Editmode": self.type = self.EDITMODE elif type == "Framerate": self.type = self.FRAMERATE elif type == "IsSatellite": self.type = self.IS_SATELLITE elif type == "IsSatelliteS": self.type = self.IS_SATELLITE_S elif type == "IsSatelliteS2": self.type = self.IS_SATELLITE_S2 elif type == "IsCable": self.type = self.IS_CABLE elif type == "IsTerrestrial": self.type = self.IS_TERRESTRIAL elif type == "IsStreamTV": self.type = self.IS_STREAMTV elif type == "IsVolume": self.type = self.volume elif type == "IsVolumeData": self.type = self.volumedata elif type == "vsize": # new self.type = self.vsize elif type == "ttype": # new self.type = self.ttype else: self.type = self.format self.sfmt = type[:] self.poll_interval = 1000 self.poll_enabled = True
def changed(self, what): Converter.changed(self, what)
def changed(self, what): if what[0] != self.CHANGED_SPECIFIC or what[ 1] in self.interesting_events: Converter.changed(self, what)
def __init__(self, arg=None, func=None): Converter.__init__(self, arg) assert func is not None self.func = func
def __init__(self, type): Converter.__init__(self, type) global weather_data if weather_data is None: weather_data = WeatherData() self.type = type
def changed(self, what): if what[0] == self.CHANGED_SPECIFIC and what[ 1] == iPlayableService.evUpdatedInfo or what[ 0] == self.CHANGED_POLL: Converter.changed(self, what)
def __init__(self, type): Converter.__init__(self, type) self.type = type self.short_list = True Poll.__init__(self) self.poll_interval = 1000 self.poll_enabled = True self.list = [] if "FreqInfo" in type: self.type = self.FREQINFO elif "Orbital" in type: self.type = self.ORBITAL elif "ResCodec" in type: self.type = self.RESCODEC elif "VideoCodec" in type: self.type = self.VIDEOCODEC elif "Fps" in type: self.type = self.FPS elif "VideoSize" in type: self.type = self.VIDEOSIZE elif "PidInfo" in type: self.type = self.PIDINFO elif "PidHexInfo" in type: self.type = self.PIDHEXINFO elif "Is1080" in type: self.type = self.IS1080 elif "Is720" in type: self.type = self.IS720 elif "Is576" in type: self.type = self.IS576 elif "Is1440" in type: self.type = self.IS1440 elif "Is2160" in type: self.type = self.IS2160 elif "Is480" in type: self.type = self.IS480 elif "Is360" in type: self.type = self.IS360 elif "Is240" in type: self.type = self.IS240 elif "Is144" in type: self.type = self.IS144 elif "IsProgressive" in type: self.type = self.ISPROGRESSIVE elif "IsInterlaced" in type: self.type = self.ISINTERLACED elif "HasMPEG2" in type: self.type = self.HASMPEG2 elif "HasAVC" in type: self.type = self.HASAVC elif "HasMPEG1" in type: self.type = self.HASMPEG1 elif "HasMPEG4VC" in type: self.type = self.HASMPEG4VC elif "HasVC1" in type: self.type = self.HASVC1 elif "HasVC1SM" in type: self.type = self.HASVC1SM elif "HasHEVC" in type: self.type = self.HASHEVC elif "StreamUrl" in type: self.type = self.STREAMURL elif "StreamType" in type: self.type = self.STREAMTYPE elif "IsStreaming" in type: self.type = self.ISSTREAMING
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) if type == "CAID": self.type = self.CAID elif type == "PID": self.type = self.PID elif type == "ProvID": self.type = self.PROV elif type == "Delay": self.type = self.DELAY elif type == "Host": self.type = self.HOST elif type == "Net": self.type = self.IS_NET elif type == "Emu": self.type = self.IS_EMU elif type == "CryptInfo": self.type = self.CRYPT elif type == "CryptInfo2": self.type = self.CRYPT2 elif type == "BetaCrypt": self.type = self.BETA elif type == "ConaxCrypt": self.type = self.CONAX elif type == "CrwCrypt": self.type = self.CRW elif type == "DreamCrypt": self.type = self.DRE elif type == "ExsCrypt": self.type = self.EXS elif type == "IrdCrypt": self.type = self.IRD elif type == "NagraCrypt": self.type = self.NAGRA elif type == "NdsCrypt": self.type = self.NDS elif type == "SecaCrypt": self.type = self.SECA elif type == "ViaCrypt": self.type = self.VIA elif type == "BetaEcm": self.type = self.BETA_C elif type == "ConaxEcm": self.type = self.CONAX_C elif type == "CrwEcm": self.type = self.CRW_C elif type == "DreamEcm": self.type = self.DRE_C elif type == "ExsEcm": self.type = self.EXS_C elif type == "IrdEcm": self.type = self.IRD_C elif type == "NagraEcm": self.type = self.NAGRA_C elif type == "NdsEcm": self.type = self.NDS_C elif type == "SecaEcm": self.type = self.SECA_C elif type == "ViaEcm": self.type = self.VIA_C elif type == "BisCrypt": self.type = self.BISS elif type == "BisEcm": self.type = self.BISS_C elif type == "Crd": self.type = self.CRD elif type == "CrdTxt": self.type = self.CRDTXT elif type == "IsFta": self.type = self.IS_FTA elif type == "IsCrypted": self.type = self.IS_CRYPTED elif type == "Short": self.type = self.SHORT elif type == "Default" or type == "" or type == None or type == "%": self.type = self.ALL else: self.type = self.FORMAT self.sfmt = type[:] self.systemTxtCaids = { "26" : "BiSS", "01" : "Seca Mediaguard", "06" : "Irdeto", "17" : "BetaCrypt", "05" : "Viacces", "18" : "Nagravision", "09" : "NDS-Videoguard", "0B" : "Conax", "0D" : "Cryptoworks", "4A" : "DRE-Crypt", "27" : "ExSet", "0E" : "PowerVu", "22" : "Codicrypt", "07" : "DigiCipher", "56" : "Verimatrix", "7B" : "DRE-Crypt", "A1" : "Rosscrypt"} self.systemCaids = { "26" : "BiSS", "01" : "SEC", "06" : "IRD", "17" : "BET", "05" : "VIA", "18" : "NAG", "09" : "NDS", "0B" : "CON", "0D" : "CRW", "27" : "EXS", "7B" : "DRE", "4A" : "DRE" }
def __init__(self, type): Converter.__init__(self, type) self.type = type
def changed(self, what): Converter.changed(self, (self.CHANGED_POLL,))
def neededChange(self): if self.what: Converter.changed(self, self.what) self.what = None
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) if type == 'EndTime': self.type = self.TYPE_ENDTIME self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) self.type = type.split(";")
def changed(self, what): if what[0] != self.CHANGED_SPECIFIC or what[1] in ( iPlayableService.evStart, ): Converter.changed(self, what)
def forceChanged(self, what): if what == True: self.refstr = self.isStream = self.ref = self.info = self.tpdata = None Converter.changed(self, (self.CHANGED_ALL, )) self.what = None
def __init__(self, arguments): Converter.__init__(self, arguments)
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) self.poll_interval = 10000 self.poll_enabled = True self.type, self.interesting_events = { "HasTelext": (self.HAS_TELETEXT, (iPlayableService.evUpdatedInfo, )), "IsMultichannel": (self.IS_MULTICHANNEL, (iPlayableService.evUpdatedInfo, )), "IsStereo": (self.AUDIO_STEREO, (iPlayableService.evUpdatedInfo, )), "IsCrypted": (self.IS_CRYPTED, (iPlayableService.evUpdatedInfo, )), "IsWidescreen": (self.IS_WIDESCREEN, (iPlayableService.evVideoSizeChanged, )), "IsNotWidescreen": (self.IS_NOT_WIDESCREEN, (iPlayableService.evVideoSizeChanged, )), "SubservicesAvailable": (self.SUBSERVICES_AVAILABLE, (iPlayableService.evUpdatedEventInfo, )), "VideoWidth": (self.XRES, (iPlayableService.evVideoSizeChanged, )), "VideoHeight": (self.YRES, (iPlayableService.evVideoSizeChanged, )), "AudioPid": (self.APID, (iPlayableService.evUpdatedInfo, )), "VideoPid": (self.VPID, (iPlayableService.evUpdatedInfo, )), "PcrPid": (self.PCRPID, (iPlayableService.evUpdatedInfo, )), "PmtPid": (self.PMTPID, (iPlayableService.evUpdatedInfo, )), "TxtPid": (self.TXTPID, (iPlayableService.evUpdatedInfo, )), "TsId": (self.TSID, (iPlayableService.evUpdatedInfo, )), "OnId": (self.ONID, (iPlayableService.evUpdatedInfo, )), "Sid": (self.SID, (iPlayableService.evUpdatedInfo, )), "Framerate": (self.FRAMERATE, ( iPlayableService.evVideoSizeChanged, iPlayableService.evUpdatedInfo, )), "Progressive": (self.PROGRESSIVE, ( iPlayableService.evVideoProgressiveChanged, iPlayableService.evUpdatedInfo, )), "VideoInfo": (self.VIDEO_INFO, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoFramerateChanged, iPlayableService.evVideoProgressiveChanged, iPlayableService.evUpdatedInfo, )), "TransferBPS": (self.TRANSFERBPS, (iPlayableService.evUpdatedInfo, )), "HasHBBTV": (self.HAS_HBBTV, ( iPlayableService.evUpdatedInfo, iPlayableService.evHBBTVInfo, )), "AudioTracksAvailable": (self.AUDIOTRACKS_AVAILABLE, (iPlayableService.evUpdatedInfo, )), "SubtitlesAvailable": (self.SUBTITLES_AVAILABLE, (iPlayableService.evUpdatedInfo, )), "Freq_Info": (self.FREQ_INFO, (iPlayableService.evUpdatedInfo, )), "Editmode": (self.EDITMODE, (iPlayableService.evUpdatedInfo, )), "IsStream": (self.IS_STREAM, (iPlayableService.evUpdatedInfo, )), "IsSD": (self.IS_SD, (iPlayableService.evVideoSizeChanged, )), "IsHD": (self.IS_HD, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "Is1080": (self.IS_1080, (iPlayableService.evVideoSizeChanged, )), "Is720": (self.IS_720, (iPlayableService.evVideoSizeChanged, )), "Is576": (self.IS_576, (iPlayableService.evVideoSizeChanged, )), "Is480": (self.IS_480, (iPlayableService.evVideoSizeChanged, )), "Is4K": (self.IS_4K, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "IsIPStream": (self.IS_IPSTREAM, (iPlayableService.evUpdatedInfo, )), "IsSDR": (self.IS_SDR, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "IsHDR": (self.IS_HDR, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "IsHDR10": (self.IS_HDR10, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "IsHLG": (self.IS_HLG, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), "IsHDHDR": (self.IS_HDHDR, ( iPlayableService.evVideoSizeChanged, iPlayableService.evVideoGammaChanged, )), }[type] self.interesting_events += (iPlayableService.evStart, )
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) if type == "Vfd": self.type = self.VFD elif type == "Date": self.type = self.DATE elif type == "Shortdate": self.type = self.SHORTDATE elif type == "Day": self.type = self.DAY elif type == "Shortday": self.type = self.SHORTDAY elif type == "Location": self.type = self.LOCATION elif type == "Timezone": self.type = self.TIMEZONE elif type == "Latitude": self.type = self.LATITUDE elif type == "Longitude": self.type = self.LONGITUDE elif type == "Temp": self.type = self.TEMP elif type == "Picon": self.type = self.PICON elif type == "Skytext": self.type = self.SKYTEXT elif type == "Feelslike": self.type = self.FEELSLIKE elif type == "Humidity": self.type = self.HUMIDITY elif type == "Wind": self.type = self.WIND elif type == "Windspeed": self.type = self.WINDSPEED # today # elif type == "Date0": self.type = self.DATE0 elif type == "Shortdate0": self.type = self.SHORTDATE0 elif type == "Day0": self.type = self.DAY0 elif type == "Shortday0": self.type = self.SHORTDAY0 elif type == "Temp0": self.type = self.TEMP0 elif type == "Lowtemp0": self.type = self.LOWTEMP0 elif type == "Hightemp0": self.type = self.HIGHTEMP0 elif type == "Picon0": self.type = self.PICON0 elif type == "Skytext0": self.type = self.SKYTEXT0 elif type == "Precip0": self.type = self.PRECIP0 # day 1 # elif type == "Date1": self.type = self.DATE1 elif type == "Shortdate1": self.type = self.SHORTDATE1 elif type == "Day1": self.type = self.DAY1 elif type == "Shortday1": self.type = self.SHORTDAY1 elif type == "Temp1": self.type = self.TEMP1 elif type == "Lowtemp1": self.type = self.LOWTEMP1 elif type == "Hightemp1": self.type = self.HIGHTEMP1 elif type == "Picon1": self.type = self.PICON1 elif type == "Skytext1": self.type = self.SKYTEXT1 elif type == "Precip1": self.type = self.PRECIP1 # day 2 # elif type == "Date2": self.type = self.DATE2 elif type == "Shortdate2": self.type = self.SHORTDATE2 elif type == "Day2": self.type = self.DAY2 elif type == "Shortday2": self.type = self.SHORTDAY2 elif type == "Temp2": self.type = self.TEMP2 elif type == "Lowtemp2": self.type = self.LOWTEMP2 elif type == "Hightemp2": self.type = self.HIGHTEMP2 elif type == "Picon2": self.type = self.PICON2 elif type == "Skytext2": self.type = self.SKYTEXT2 elif type == "Precip2": self.type = self.PRECIP2 # day 3 # elif type == "Date3": self.type = self.DATE3 elif type == "Shortdate3": self.type = self.SHORTDATE3 elif type == "Day3": self.type = self.DAY3 elif type == "Shortday3": self.type = self.SHORTDAY3 elif type == "Temp3": self.type = self.TEMP3 elif type == "Lowtemp3": self.type = self.LOWTEMP3 elif type == "Hightemp3": self.type = self.HIGHTEMP3 elif type == "Picon3": self.type = self.PICON3 elif type == "Skytext3": self.type = self.SKYTEXT3 elif type == "Precip3": self.type = self.PRECIP3 # day 4 # elif type == "Date4": self.type = self.DATE4 elif type == "Shortdate4": self.type = self.SHORTDATE4 elif type == "Day4": self.type = self.DAY4 elif type == "Shortday4": self.type = self.SHORTDAY4 elif type == "Temp4": self.type = self.TEMP4 elif type == "Lowtemp4": self.type = self.LOWTEMP4 elif type == "Hightemp4": self.type = self.HIGHTEMP4 elif type == "Picon4": self.type = self.PICON4 elif type == "Skytext4": self.type = self.SKYTEXT4 elif type == "Precip4": self.type = self.PRECIP4 self.iConsole = iConsole() self.poll_interval = time_update_ms self.poll_enabled = True
def __init__(self, type): Poll.__init__(self) Converter.__init__(self, type) if type == 'CAID': self.type = self.CAID elif type == 'PID': self.type = self.PID elif type == 'ProvID': self.type = self.PROV elif type == 'Delay': self.type = self.DELAY elif type == 'Host': self.type = self.HOST elif type == 'Net': self.type = self.IS_NET elif type == 'Emu': self.type = self.IS_EMU elif type == 'CryptInfo': self.type = self.CRYPT elif type == 'CryptInfo2': self.type = self.CRYPT2 elif type == 'BetaCrypt': self.type = self.BETA elif type == 'ConaxCrypt': self.type = self.CONAX elif type == 'CrwCrypt': self.type = self.CRW elif type == 'DreamCrypt': self.type = self.DRE elif type == 'ExsCrypt': self.type = self.EXS elif type == 'IrdCrypt': self.type = self.IRD elif type == 'NagraCrypt': self.type = self.NAGRA elif type == 'NdsCrypt': self.type = self.NDS elif type == 'SecaCrypt': self.type = self.SECA elif type == 'ViaCrypt': self.type = self.VIA elif type == 'BetaEcm': self.type = self.BETA_C elif type == 'ConaxEcm': self.type = self.CONAX_C elif type == 'CrwEcm': self.type = self.CRW_C elif type == 'DreamEcm': self.type = self.DRE_C elif type == 'ExsEcm': self.type = self.EXS_C elif type == 'IrdEcm': self.type = self.IRD_C elif type == 'NagraEcm': self.type = self.NAGRA_C elif type == 'NdsEcm': self.type = self.NDS_C elif type == 'SecaEcm': self.type = self.SECA_C elif type == 'ViaEcm': self.type = self.VIA_C elif type == 'BisCrypt': self.type = self.BISS elif type == 'BisEcm': self.type = self.BISS_C elif type == 'Crd': self.type = self.CRD elif type == 'CrdTxt': self.type = self.CRDTXT elif type == 'Short': self.type = self.SHORT elif type == 'Default' or type == '' or type == None or type == '%': self.type = self.ALL else: self.type = self.FORMAT self.sfmt = type[:] self.systemTxtCaids = { '26': 'BiSS', '01': 'Seca Mediaguard', '06': 'Irdeto', '17': 'BetaCrypt', '05': 'Viacces', '18': 'Nagravision', '09': 'NDS-Videoguard', '0B': 'Conax', '0D': 'Cryptoworks', '4A': 'DRE-Crypt', '27': 'ExSet', '0E': 'PowerVu', '22': 'Codicrypt', '07': 'DigiCipher', '56': 'Verimatrix', '7B': 'DRE-Crypt', 'A1': 'Rosscrypt' } self.systemCaids = { '26': 'BiSS', '01': 'SEC', '06': 'IRD', '17': 'BET', '05': 'VIA', '18': 'NAG', '09': 'NDS', '0B': 'CON', '0D': 'CRW', '27': 'EXS', '7B': 'DRE', '4A': 'DRE' } return
def changed(self, what): if what[0] != self.CHANGED_SPECIFIC or what[1] == self.type: Converter.changed(self, what)
def changed(self, what): self.what = what Converter.changed(self, what)
def __init__(self, type): Converter.__init__(self, type) self.types = str(type).split(",")
def __init__(self, type): Converter.__init__(self, type) if type == "movecopy": self.type = self.movecopy elif type == "currentlyrunning": self.type = self.currentlyrunning elif type == "itfollows": self.type = self.itfollows elif type == "coming": self.type = self.coming elif type == "runningsince": self.type = self.runningsince elif type == "preview": self.type = self.preview elif type == "runsuntil": self.type = self.runsuntil elif type == "clock": self.type = self.clock elif type == "timeshiftactive": self.type = self.timeshiftactive elif type == "untillive": self.type = self.untillive elif type == "temperature": self.type = self.temperature elif type == "cpuload": self.type = self.cpuload elif type == "satellite": self.type = self.satellite elif type == "fanspeed": self.type = self.fanspeed elif type == "avgload": self.type = self.avgload elif type == "signal": self.type = self.signal elif type == "tuner": self.type = self.tuner elif type == "video": self.type = self.video elif type == "ecm": self.type = self.ecm elif type == "flash": self.type = self.flash elif type == "ram": self.type = self.ram elif type == "hdd": self.type = self.hdd elif type == "usb": self.type = self.usb elif type == "sys": self.type = self.sys elif type == "rm": self.type = self.rm elif type == "cpu": self.type = self.cpu elif type == "load": self.type = self.load elif type == "sat": self.type = self.sat elif type == "snr": self.type = self.snr elif type == "temp": self.type = self.temp elif type == "wind": self.type = self.wind elif type == "clime": self.type = self.clime elif type == "city": self.type = self.city elif type == "name": self.type = self.name elif type == "birthday": self.type = self.birthday elif type == "age": self.type = self.age elif type == "brsettings": self.type = self.brsettings elif type == "brpath": self.type = self.brpath
def doSwitch(self): self.DynamicTimer.stop() Converter.changed(self, self.what)
def __init__(self, type): Converter.__init__(self, type) self.type = "" if type == "Name": self.type = self.NAME
def changed(self, what): if what[0] is self.CHANGED_SPECIFIC: Converter.changed(self, what) elif what[0] is self.CHANGED_POLL: self.downstream_elements.changed(what)
def changed(self, what): self.what = what if what[0] in self.interesting_events: Converter.changed(self, what) Converter.changed(self, what)
def __init__(self, type): Converter.__init__(self, type) self.in_percent = "InPercent" in type.split(',')
def __init__(self, type): Converter.__init__(self, type) Poll.__init__(self) self.iConsole = iConsole() self.poll_interval = time_update_ms self.poll_enabled = True
def __init__(self, type): Converter.__init__(self, type) self.list = [] self.rescan = False self.getLists() self.DynTimer = eTimer() self.DynTimer.callback.append(self.doIt) self.interesting_events = {'EcmInfo': (self.ECMINFO, self.rescan), 'IrdEcm': (self.IRDECM, self.rescan), 'SecaEcm': (self.SECAECM, self.rescan), 'NagraEcm': (self.NAGRAECM, self.rescan), 'ViaEcm': (self.VIAECM, self.rescan), 'ConaxEcm': (self.CONAXECM, self.rescan), 'BetaEcm': (self.BETAECM, self.rescan), 'CrwEcm': (self.CRWECM, self.rescan), 'DreamEcm': (self.DREAMECM, self.rescan), 'NdsEcm': (self.NDSECM, self.rescan), 'Emu': (self.EMU, self.rescan), 'Crd': (self.CRD, self.rescan), 'Net': (self.NET, self.rescan)} if type == 'TunerInfo': self.type = self.TUNERINFO elif type == 'CamName': self.type = self.CAMNAME elif type == 'Number': self.type = self.NUMBER elif type == 'EcmInfo': self.type = self.ECMINFO elif type == 'CaidInfo': self.type = self.CAIDINFO elif type == 'IrdCrypt': self.type = self.IRDCRYPT elif type == 'SecaCrypt': self.type = self.SECACRYPT elif type == 'NagraCrypt': self.type = self.NAGRACRYPT elif type == 'ViaCrypt': self.type = self.VIACRYPT elif type == 'ConaxCrypt': self.type = self.CONAXCRYPT elif type == 'BetaCrypt': self.type = self.BETACRYPT elif type == 'CrwCrypt': self.type = self.CRWCRYPT elif type == 'DreamCrypt': self.type = self.DREAMCRYPT elif type == 'NdsCrypt': self.type = self.NDSCRYPT elif type == 'IrdEcm': self.type = self.IRDECM elif type == 'SecaEcm': self.type = self.SECAECM elif type == 'NagraEcm': self.type = self.NAGRAECM elif type == 'ViaEcm': self.type = self.VIAECM elif type == 'ConaxEcm': self.type = self.CONAXECM elif type == 'BetaEcm': self.type = self.BETAECM elif type == 'CrwEcm': self.type = self.CRWECM elif type == 'DreamEcm': self.type = self.DREAMECM elif type == 'NdsEcm': self.type = self.NDSECM elif type == 'Fta': self.type = self.FTA elif type == 'Emu': self.type = self.EMU elif type == 'Crd': self.type = self.CRD elif type == 'Net': self.type = self.NET elif type == 'TunerInfoBP': self.type = self.TUNERINFOBP elif type == 'TunerType': self.type = self.TUNERTYPE