本文整理汇总了Python中Tools.GetEcmInfo.GetEcmInfo类的典型用法代码示例。如果您正苦于以下问题:Python GetEcmInfo类的具体用法?Python GetEcmInfo怎么用?Python GetEcmInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GetEcmInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: CryptoInfo
class CryptoInfo(Poll, Converter, object):
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.active = False
self.visible = config.usage.show_cryptoinfo.value
self.textvalue = ""
self.poll_interval = 1000
self.poll_enabled = True
self.ecmdata = GetEcmInfo()
@cached
def getText(self):
if not config.usage.show_cryptoinfo.value:
self.visible = False
data = ''
else:
self.visible = True
if self.type == "VerboseInfo":
data = self.ecmdata.getEcmData()[0]
else:
data = self.ecmdata.getInfo(self.type)
return data
text = property(getText)
示例2: CryptoInfo
class CryptoInfo(Poll, Converter, object):
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.active = False
if int(config.usage.show_cryptoinfo.value) > 0:
self.visible = True
else:
self.visible = False
self.textvalue = ""
self.poll_interval = 1000
self.poll_enabled = True
self.ecmdata = GetEcmInfo()
@cached
def getText(self):
if int(config.usage.show_cryptoinfo.value) < 1:
self.visible = False
return ""
self.visible = True
data = self.ecmdata.getEcmData()
return data[0]
text = property(getText)
示例3: __init__
def __init__(self, session):
Screen.__init__(self, session)
self.setup_title = _("Cardserver Setup")
self["lab1"] = Label()
self["actions"] = ActionMap(
["OkCancelActions", "ColorActions", "CiSelectionActions"],
{"cancel": self.cancel, "green": self.save, "red": self.cancel},
-1,
)
self.list = []
ConfigListScreen.__init__(self, self.list, session=session)
self.cardserver = CardControlService("cardserver")
self.ecminfo = GetEcmInfo()
newEcmFound, ecmInfo = self.ecminfo.getEcm()
self["info"] = ScrollLabel("".join(ecmInfo))
self.EcmInfoPollTimer = eTimer()
self.EcmInfoPollTimer.callback.append(self.setEcmInfo)
self.EcmInfoPollTimer.start(1000)
cardservers = self.cardserver.getList()
self.cardservers = ConfigSelection(choices=cardservers)
self.cardservers.value = self.cardserver.current()
self.list.append(getConfigListEntry(_("Select cardserver"), self.cardservers))
self.list.append(getConfigListEntry(_("Restart cardserver"), ConfigAction(self.restart, "s")))
self["lab1"].setText("%d Cams Instaladas" % (len(self.list)))
self["key_red"] = Label(_("Cancel"))
self["key_green"] = Label(_("OK"))
self.onLayoutFinish.append(self.layoutFinished)
示例4: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.poll_interval = 1000
self.poll_enabled = True
self.caid_data = {
( "0x100", "0x1ff", "Seca", "S" ),
( "0x500", "0x5ff", "Via", "V" ),
( "0x600", "0x6ff", "Irdeto", "I" ),
( "0x900", "0x9ff", "NDS", "ND" ),
( "0xb00", "0xbff", "Conax", "CO" ),
( "0xd00", "0xdff", "CryptoW", "CW" ),
( "0xe00", "0xeff", "PowerVU", "P" ),
("0x1000", "0x10FF", "Tandberg", "TB" ),
("0x1700", "0x17ff", "Beta", "B" ),
("0x1800", "0x18ff", "Nagra", "N" ),
("0x2600", "0x2600", "Biss", "BI" ),
("0x4ae0", "0x4ae1", "Dre", "D" ),
("0x4aee", "0x4aee", "BulCrypt", "B1" ),
("0x5581", "0x5581", "BulCrypt", "B2" ) }
self.ecmdata = GetEcmInfo()
self.feraw = self.fedata = self.updateFEdata = None
self.DynamicTimer = eTimer()
self.DynamicTimer.callback.append(self.doSwitch)
示例5: __init__
def __init__(self, session):
Screen.__init__(self, session)
self.setup_title = _('Softcam Setup')
self["lab1"] = Label()
self['actions'] = ActionMap(['OkCancelActions', 'ColorActions', 'CiSelectionActions'], {'cancel': self.cancel,
'green': self.save,
'red': self.cancel}, -1)
self.list = []
ConfigListScreen.__init__(self, self.list, session=session)
self.softcam = CamControlService('softcam')
self.ecminfo = GetEcmInfo()
newEcmFound, ecmInfo = self.ecminfo.getEcm()
self['info'] = ScrollLabel(''.join(ecmInfo))
self.EcmInfoPollTimer = eTimer()
self.EcmInfoPollTimer.callback.append(self.setEcmInfo)
self.EcmInfoPollTimer.start(1000)
softcams = self.softcam.getList()
self.softcams = ConfigSelection(choices=softcams)
self.softcams.value = self.softcam.current()
self.list.append(getConfigListEntry(_('Select softcam'), self.softcams))
self.list.append(getConfigListEntry(_('Restart softcam'), ConfigAction(self.restart, 's')))
self["lab1"].setText("%d Cams Instaladas" % (len(self.list)))
self['key_red'] = Label(_('Cancel'))
self['key_green'] = Label(_('OK'))
self.onLayoutFinish.append(self.layoutFinished)
示例6: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = {
"ShowMe": self.SMART_LABEL,
"ExpertInfo": self.SMART_INFO_H,
"ExpertInfoVertical": self.SMART_INFO_V,
"ServiceInfo": self.SERVICE_INFO,
"CryptoInfo": self.CRYPTO_INFO
}[type]
try:
self.poll_interval = config.plugins.ValiKSSetup.pollTime.value*1000
except:
self.poll_interval = 1000
self.poll_enabled = True
self.idnames = (
( "0x100", "0x1FF","Seca" ,"Seca", " "),
( "0x500", "0x5FF","Via" ,"Viaccess", " "),
( "0x600", "0x6FF","Irdeto" ,"Irdeto", " "),
( "0x900", "0x9FF","NDS" ,"Videoguard", " "),
( "0xB00", "0xBFF","Conax" ,"Conax", " "),
( "0xD00", "0xDFF","CryptoW","Cryptoworks", " "),
("0x1700","0x17FF","Beta" ,"Betacrypt", " "),
("0x1800","0x18FF","Nagra" ,"Nagravision", " "))
self.ecmdata = GetEcmInfo()
示例7: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.active = False
self.visible = config.usage.show_cryptoinfo.value
self.textvalue = ""
self.poll_interval = 1000
self.poll_enabled = True
self.ecmdata = GetEcmInfo()
示例8: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.poll_interval = 1000
self.poll_enabled = True
self.caid_data = (
( "0x100", "0x1ff", "Seca", "S", True ),
( "0x500", "0x5ff", "Via", "V", True ),
( "0x600", "0x6ff", "Irdeto", "I", True ),
( "0x900", "0x9ff", "NDS", "Nd", True ),
( "0xb00", "0xbff", "Conax", "Co", True ),
( "0xd00", "0xdff", "CryptoW", "Cw", True ),
( "0xe00", "0xeff", "PowerVU", "P", True ),
("0x1700", "0x17ff", "Beta", "B", True ),
("0x1800", "0x18ff", "Nagra", "N", True ),
("0x2600", "0x2600", "Biss", "Bi", True ),
("0x2700", "0x2700", "Exset", "Ex", True ),
("0x4ae0", "0x4ae1", "Dre", "D", True ),
("0x4aee", "0x4aee", "BulCrypt", "B1", False ),
("0x5581", "0x5581", "BulCrypt", "B2", False )
)
self.ca_table = (
("CryptoCaidSecaAvailable", "S", False),
("CryptoCaidViaAvailable", "V", False),
("CryptoCaidIrdetoAvailable", "I", False),
("CryptoCaidNDSAvailable", "Nd", False),
("CryptoCaidConaxAvailable", "Co", False),
("CryptoCaidCryptoWAvailable", "Cw", False),
("CryptoCaidPowerVUAvailable", "P", False),
("CryptoCaidBetaAvailable", "B", False),
("CryptoCaidNagraAvailable", "N", False),
("CryptoCaidExsetAvailable", "Ex", False),
("CryptoCaidBissAvailable", "Bi", False),
("CryptoCaidDreAvailable", "D", False),
("CryptoCaidBulCrypt1Available","B1", False),
("CryptoCaidBulCrypt2Available","B2", False),
("CryptoCaidSecaSelected", "S", True),
("CryptoCaidViaSelected", "V", True),
("CryptoCaidIrdetoSelected", "I", True),
("CryptoCaidNDSSelected", "Nd", True),
("CryptoCaidConaxSelected", "Co", True),
("CryptoCaidCryptoWSelected", "Cw", True),
("CryptoCaidPowerVUSelected", "P", True),
("CryptoCaidBetaSelected", "B", True),
("CryptoCaidNagraSelected", "N", True),
("CryptoCaidBissSelected", "Bi", True),
("CryptoCaidExsetSelected", "Ex", True),
("CryptoCaidDreSelected", "D", True),
("CryptoCaidBulCrypt1Selected", "B1", True),
("CryptoCaidBulCrypt2Selected", "B2", True),
)
self.ecmdata = GetEcmInfo()
self.feraw = self.fedata = self.updateFEdata = None
示例9: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.poll_interval = 1000
self.poll_enabled = True
self.caid_data = (
("0x1700", "0x17ff", "BetaCrypt", "B", True ),
( "0x600", "0x6ff", "Irdeto", "I", True ),
("0x1800", "0x18ff", "Nagravision", "N", True ),
( "0x100", "0x1ff", "Seca Mediaguard","S", True ),
("0x1000", "0x10FF", "Tandberg", "T", True ),
( "0x500", "0x5ff", "Viaccess", "V", True ),
("0x2600", "0x2600", "Biss", "BI", True ),
("0x4aee", "0x4aee", "BulCrypt", "BU", True ),
("0x5581", "0x5581", "BulCrypt", "BU", False),
( "0xb00", "0xbff", "Conax", "CO", True ),
( "0xd00", "0xdff", "CryptoWorks", "CW", True ),
("0x4ae0", "0x4ae1", "DRE-Crypt", "DC", True ),
( "0x900", "0x9ff", "NDS Videoguard", "ND", True ),
( "0xe00", "0xeff", "PowerVu", "PV", True ),
)
self.ca_table = (
("CryptoCaidBetatAvailable", "B", False),
("CryptoCaidIrdetoAvailable" "I", False),
("CryptoCaidNagraAvailable", "N", False),
("CryptoCaidSecaAvailable", "S", False),
("CryptoCaidTandbergAvailable", "T", False),
("CryptoCaidViaAvailable", "V", False),
("CryptoCaidBissAvailable", "BI", False),
("CryptoCaidBulCrypt1Available","BU", False),
("CryptoCaidBulCrypt2Available","BU", False),
("CryptoCaidConaxAvailable", "CO", False),
("CryptoCaidCryptoWAvailable", "CW", False),
("CryptoCaidDreAvailable", "DC", False),
("CryptoCaidNDSAvailable", "ND", False),
("CryptoCaidPowerVuAvailable", "PV", False),
("CryptoCaidBetaSelected", "B", True ),
("CryptoCaidIrdetoSelected", "I", True ),
("CryptoCaidNagraSelected", "N", True ),
("CryptoCaidSecaSelected", "S", True ),
("CryptoCaidTandbergSelected", "T", True ),
("CryptoCaidViaSelected", "V", True ),
("CryptoCaidBissSelected", "BI", True ),
("CryptoCaidBulCrypt1Selected", "BU", True ),
("CryptoCaidBulCrypt2Selected", "BU", True ),
("CryptoCaidConaxSelected", "CO", True ),
("CryptoCaidCryptoWSelected", "CW", True ),
("CryptoCaidDreSelected", "DC", True ),
("CryptoCaidNDSSelected", "ND", True ),
("CryptoCaidPowerVuSelected", "PV", True ),
)
self.ecmdata = GetEcmInfo()
self.feraw = self.fedata = self.updateFEdata = None
示例10: __init__
def __init__(self, session, showExtentionMenuOption):
Screen.__init__(self, session)
self.setup_title = _("Softcam setup")
self["actions"] = ActionMap(["OkCancelActions", "ColorActions", "CiSelectionActions"],
{
"cancel": self.cancel,
"green": self.save,
"red": self.cancel,
"blue": self.ppanelShortcut,
},-1)
self.list = [ ]
ConfigListScreen.__init__(self, self.list, session = session)
self.softcam = CamControl('softcam')
self.cardserver = CamControl('cardserver')
self.ecminfo = GetEcmInfo()
(newEcmFound, ecmInfo) = self.ecminfo.getEcm()
self["info"] = Label()
self.ecm()
self.EcmInfoPollTimer = eTimer()
self.EcmInfoPollTimer.callback.append(self.setEcmInfo)
self.EcmInfoPollTimer.start(1000)
softcams = self.softcam.getList()
cardservers = self.cardserver.getList()
self.softcams = ConfigSelection(choices = softcams)
self.softcams.value = self.softcam.current()
self.list.append(getConfigListEntry(_("Select Softcam"), self.softcams))
if cardservers:
self.cardservers = ConfigSelection(choices = cardservers)
self.cardservers.value = self.cardserver.current()
self.list.append(getConfigListEntry(_("Select Card Server"), self.cardservers))
self.list.append(getConfigListEntry(_("Restart softcam"), ConfigAction(self.restart, "s")))
if cardservers:
self.list.append(getConfigListEntry(_("Restart cardserver"), ConfigAction(self.restart, "c")))
self.list.append(getConfigListEntry(_("Restart both"), ConfigAction(self.restart, "sc")))
if showExtentionMenuOption:
self.list.append(getConfigListEntry(_("Show softcam setup in extensions menu"), config.misc.softcam_setup.extension_menu))
self["key_red"] = Label(_("Cancel"))
self["key_green"] = Label(_("OK"))
self["key_blue"] = Label(_("Info"))
self.onLayoutFinish.append(self.layoutFinished)
示例11: __init__
def __init__(self, session):
Screen.__init__(self, session)
self.setup_title = _("Softcam setup")
self.setTitle(self.setup_title)
self["actions"] = ActionMap(["OkCancelActions", "ColorActions", "CiSelectionActions"],
{
"cancel": self.cancel,
"green": self.save,
"red": self.cancel,
"blue": self.ppanelShortcut,
},-1)
self.list = [ ]
ConfigListScreen.__init__(self, self.list, session = session, on_change = self.changedEntry)
self.softcam = CamControl('softcam')
self.cardserver = CamControl('cardserver')
self.ecminfo = GetEcmInfo()
(newEcmFound, ecmInfo) = self.ecminfo.getEcm()
self["info"] = ScrollLabel("".join(ecmInfo))
self.EcmInfoPollTimer = eTimer()
self.EcmInfoPollTimer.callback.append(self.setEcmInfo)
self.EcmInfoPollTimer.start(1000)
softcams = self.softcam.getList()
cardservers = self.cardserver.getList()
self.softcams = ConfigSelection(choices = softcams)
self.softcams.value = self.softcam.current()
self.softcams_text = _("Select Softcam")
self.list.append(getConfigListEntry(self.softcams_text, self.softcams))
if cardservers:
self.cardservers = ConfigSelection(choices = cardservers)
self.cardservers.value = self.cardserver.current()
self.list.append(getConfigListEntry(_("Select Card Server"), self.cardservers))
self.list.append(getConfigListEntry(_("Restart softcam"), ConfigAction(self.restart, "s")))
if cardservers:
self.list.append(getConfigListEntry(_("Restart cardserver"), ConfigAction(self.restart, "c")))
self.list.append(getConfigListEntry(_("Restart both"), ConfigAction(self.restart, "sc")))
self["key_red"] = StaticText(_("Cancel"))
self["key_green"] = StaticText(_("OK"))
self["key_blue"] = StaticText()
self.onShown.append(self.blueButton)
示例12: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.poll_interval = 1000
self.poll_enabled = True
self.caid_data = (
( "0x100", "0x1ff", "Seca", "S" ),
( "0x500", "0x5ff", "Via", "V" ),
( "0x600", "0x6ff", "Irdeto", "I" ),
( "0x900", "0x9ff", "NDS", "Nd"),
( "0xb00", "0xbff", "Conax", "Co"),
( "0xd00", "0xdff", "CryptoW", "Cw"),
("0x1700", "0x17ff", "Beta", "B" ),
("0x1800", "0x18ff", "Nagra", "N" ),
("0x2600", "0x2600", "Biss", "Bi"),
("0x4ae0", "0x4ae1", "Dre", "D" )
)
self.ecmdata = GetEcmInfo()
示例13: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = {'ShowMe': self.SMART_LABEL,
'ExpertInfo': self.SMART_INFO_H,
'ExpertInfoVertical': self.SMART_INFO_V,
'ServiceInfo': self.SERVICE_INFO,
'CryptoInfo': self.CRYPTO_INFO,
'FrequencyInfo': self.FREQUENCY_INFO}[type]
self.poll_interval = 1000
self.poll_enabled = True
self.idnames = (('0x100', '0x1FF', 'Seca', 'S'),
('0x500', '0x5FF', 'Via', 'V'),
('0x600', '0x6FF', 'Irdeto', 'I'),
('0x900', '0x9FF', 'NDS', 'Nd'),
('0xB00', '0xBFF', 'Conax', 'Co'),
('0xD00', '0xDFF', 'CryptoW', 'Cw'),
('0x1700', '0x17FF', 'Beta', 'B'),
('0x1800', '0x18FF', 'Nagra', 'N'))
self.ecmdata = GetEcmInfo()
示例14: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = type
self.poll_interval = 1000
self.poll_enabled = True
self.ca_table = (
("CryptoCaidSecaAvailable", "S", False),
("CryptoCaidViaAvailable", "V", False),
("CryptoCaidIrdetoAvailable", "I", False),
("CryptoCaidNDSAvailable", "Nd", False),
("CryptoCaidConaxAvailable", "Co", False),
("CryptoCaidCryptoWAvailable", "Cw", False),
("CryptoCaidPowerVUAvailable", "P", False),
("CryptoCaidBetaAvailable", "B", False),
("CryptoCaidNagraAvailable", "N", False),
("CryptoCaidBissAvailable", "Bi", False),
("CryptoCaidDreAvailable", "D", False),
("CryptoCaidBulCrypt1Available","B1", False),
("CryptoCaidBulCrypt2Available","B2", False),
("CryptoCaidTandbergAvailable", "TB", False),
("CryptoCaidSecaSelected", "S", True),
("CryptoCaidViaSelected", "V", True),
("CryptoCaidIrdetoSelected", "I", True),
("CryptoCaidNDSSelected", "Nd", True),
("CryptoCaidConaxSelected", "Co", True),
("CryptoCaidCryptoWSelected", "Cw", True),
("CryptoCaidPowerVUSelected", "P", True),
("CryptoCaidBetaSelected", "B", True),
("CryptoCaidNagraSelected", "N", True),
("CryptoCaidBissSelected", "Bi", True),
("CryptoCaidDreSelected", "D", True),
("CryptoCaidBulCrypt1Selected", "B1", True),
("CryptoCaidBulCrypt2Selected", "B2", True),
("CryptoCaidTandbergSelected", "TB", True),
)
self.ecmdata = GetEcmInfo()
self.feraw = self.fedata = self.updateFEdata = None
示例15: __init__
def __init__(self, type):
Converter.__init__(self, type)
Poll.__init__(self)
self.type = {
"ShowMe": self.SMART_LABEL,
"ExpertInfo": self.SMART_INFO_H,
"ExpertInfoVertical": self.SMART_INFO_V,
"ServiceInfo": self.SERVICE_INFO,
"CryptoInfo": self.CRYPTO_INFO
}[type]
self.poll_interval = 1000
self.poll_enabled = True
self.idnames = (
( "0x100", "0x1FF","Seca" ,"S" ),
( "0x500", "0x5FF","Via" ,"V" ),
( "0x600", "0x6FF","Irdeto" ,"I" ),
( "0x900", "0x9FF","NDS" ,"Nd"),
( "0xB00", "0xBFF","Conax" ,"Co"),
( "0xD00", "0xDFF","CryptoW","Cw"),
("0x1700","0x17FF","Beta" ,"B" ),
("0x1800","0x18FF","Nagra" ,"N" ))
self.ecmdata = GetEcmInfo()