rem stringlengths 0 322k | add stringlengths 0 2.05M | context stringlengths 8 228k |
|---|---|---|
config.scan.cab.frequency = configElement_nonSave("config.scan.cab.frequency", configSequence, [466], configsequencearg.get("INTEGER", (10000, 14000))) config.scan.cab.inversion = configElement_nonSave("config.scan.cab.inversion", configSelection, 0, ("off", "on", "Auto")) config.scan.cab.modulation = configElement_non... | config.scan.cab.frequency = configElement_nonSave("config.scan.cab.frequency", configSequence, [466], configsequencearg.get("INTEGER", (50, 9999))) config.scan.cab.inversion = configElement_nonSave("config.scan.cab.inversion", configSelection, 2, ("off", "on", "Auto")) config.scan.cab.modulation = configElement_nonSave... | def createConfig(self): config.scan = ConfigSubsection() config.scan.sat = ConfigSubsection() config.scan.cab = ConfigSubsection() config.scan.ter = ConfigSubsection() |
Bw5MHz = 3 BwAuto = 4 | BwAuto = 3 | def buildTerTransponder(frequency, inversion=2, bandwidth = 3, fechigh = 6, feclow = 6, modulation = 2, transmission = 2, guard = 4, hierarchy = 4): # WARNING: normally, enums are working directly. # Don't copy this (very bad)!! Instead either fix swig (good) or # move this into a central place. Bw8MHz = 0 Bw7MHz = 1 B... |
TM4k = 2 TMAuto = 3 | TMAuto = 2 | def buildTerTransponder(frequency, inversion=2, bandwidth = 3, fechigh = 6, feclow = 6, modulation = 2, transmission = 2, guard = 4, hierarchy = 4): # WARNING: normally, enums are working directly. # Don't copy this (very bad)!! Instead either fix swig (good) or # move this into a central place. Bw8MHz = 0 Bw7MHz = 1 B... |
parm.modulation = [QPSK, QAM16, Auto][modulation] | parm.modulation = [QPSK, QAM16, QAM64, Auto][modulation] | def buildTerTransponder(frequency, inversion=2, bandwidth = 3, fechigh = 6, feclow = 6, modulation = 2, transmission = 2, guard = 4, hierarchy = 4): # WARNING: normally, enums are working directly. # Don't copy this (very bad)!! Instead either fix swig (good) or # move this into a central place. Bw8MHz = 0 Bw7MHz = 1 B... |
if x[0] == 2: parm = buildTerTransponder(x[1], inversion = x[9], bandwidth = x[2]) | if x[0] == 2: parm = buildTerTransponder(x[1], x[9], x[2], x[4], x[5], x[3], x[7], x[6], x[8]) | def getInitialTerrestrialTransponderList(tlist, region): list = nimmanager.getTranspondersTerrestrial(region) |
config.scan.ter.fechigh = configElement_nonSave("config.scan.ter.fechigh", configSelection, 6, (("none", _("None")), "1/2", "2/3", "3/4", "5/6", "7/8", _("Auto"))) config.scan.ter.feclow = configElement_nonSave("config.scan.ter.feclow", configSelection, 6, (_("None"), ("1_2", "1/2"), ("2_3", "2/3"), ("3_4", "3/4"), ("5... | config.scan.ter.fechigh = configElement_nonSave("config.scan.ter.fechigh", configSelection, 5, (("1_2", "1/2"), ("2_3", "2/3"), ("3_4", "3/4"), ("5_6", "5/6"), ("7_8", "7/8"), ("auto", _("Auto")))) config.scan.ter.feclow = configElement_nonSave("config.scan.ter.feclow", configSelection, 5, (("1_2", "1/2"), ("2_3", "2/3... | def createConfig(self, frontendData): #("Type", frontendData["system"], TYPE_TEXT), #("Modulation", frontendData["modulation"], TYPE_TEXT), #("Orbital position", frontendData["orbital_position"], TYPE_VALUE_DEC), #("Frequency", frontendData["frequency"], TYPE_VALUE_DEC), #("Symbolrate", frontendData["symbol_rate"], TYP... |
parm.modulation = modulation parm.fec = fec parm.inversion = inversion | parm.modulation = modulation parm.fec = self.fecmap[fec] parm.inversion = inversion | def addCabTransponder(self, tlist, frequency, symbol_rate, modulation, fec, inversion): print "Add Cab: frequ: " + str(frequency) + " symbol: " + str(symbol_rate) + " pol: " + str(modulation) + " fec: " + str(fec) + " inversion: " + str(inversion) parm = eDVBFrontendParametersCable() parm.frequency = frequency * 1000 p... |
def openBouquetEPG(self, bouquet): | def openBouquetEPG(self, bouquet, withCallback=True): | def openBouquetEPG(self, bouquet): ptr=eEPGCache.getInstance() services = [ ] servicelist = eServiceCenter.getInstance().list(bouquet) if not servicelist is None: while True: service = servicelist.getNext() if not service.valid(): #check if end of list break if service.flags: #ignore non playable services continue serv... |
self.session.openWithCallback(self.closed, EPGSelection, services, self.zapToService) | if withCallback: self.session.openWithCallback(self.closed, EPGSelection, services, self.zapToService) else: self.session.open(EPGSelection, services, self.zapToService) | def openBouquetEPG(self, bouquet): ptr=eEPGCache.getInstance() services = [ ] servicelist = eServiceCenter.getInstance().list(bouquet) if not servicelist is None: while True: service = servicelist.getNext() if not service.valid(): #check if end of list break if service.flags: #ignore non playable services continue serv... |
def openMultiServiceEPG(self): | def openMultiServiceEPG(self, withCallback=True): | def openMultiServiceEPG(self): bouquets = self.servicelist.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) elif cnt == 1: self.openBouquetEPG(bouquets[0][1]) |
self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) | if withCallback: self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) else: self.session.open(BouquetSelector, bouquets, self.openBouquetEPG) | def openMultiServiceEPG(self): bouquets = self.servicelist.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) elif cnt == 1: self.openBouquetEPG(bouquets[0][1]) |
self.openBouquetEPG(bouquets[0][1]) | self.openBouquetEPG(bouquets[0][1], withCallback) | def openMultiServiceEPG(self): bouquets = self.servicelist.getBouquetList() if bouquets is None: cnt = 0 else: cnt = len(bouquets) if cnt > 1: # show bouquet list self.session.openWithCallback(self.closed, BouquetSelector, bouquets, self.openBouquetEPG) elif cnt == 1: self.openBouquetEPG(bouquets[0][1]) |
self.openMultiServiceEPG() | self.openMultiServiceEPG(False) | def openEventView(self): self.epglist = [ ] service = self.session.nav.getCurrentService() ref = self.session.nav.getCurrentlyPlayingServiceReference() info = service.info() ptr=info.getEvent(0) if ptr: self.epglist.append(ptr) ptr=info.getEvent(1) if ptr: self.epglist.append(ptr) if len(self.epglist) == 0: epg = eEPGC... |
if s[1][0]=='\xc2' and s[1][1]=='\x86': | if ord(s[1][0])==0xc2 and ord(s[1][1])==0x86: | def readServiceList(self): serviceHandler = eServiceCenter.getInstance() refstr = '%s ORDER BY name' % (service_types_tv) self.root = eServiceReference(refstr) self.servicesList = {} list = serviceHandler.list(self.root) if list is not None: services = list.getContent("CN", True) #(servicecomparestring, name) for s in ... |
self.resetWarnings() | def __init__(self): self.plugins = {} self.pluginList = [ ] self.setPluginPrefix("Plugins.") | |
for x in os.listdir(directory_category): path = directory_category + "/" + x | for pluginname in os.listdir(directory_category): path = directory_category + "/" + pluginname | def readPluginList(self, directory): """enumerates plugins""" categories = os.listdir(directory) new_plugins = [ ] for c in categories: directory_category = directory + c if not os.path.isdir(directory_category): continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category):... |
plugin = my_import('.'.join(["Plugins", c, x, "plugin"])) | plugin = my_import('.'.join(["Plugins", c, pluginname, "plugin"])) | def readPluginList(self, directory): """enumerates plugins""" categories = os.listdir(directory) new_plugins = [ ] for c in categories: directory_category = directory + c if not os.path.isdir(directory_category): continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category):... |
print "Plugin %s doesn't have 'Plugin'-call." % (x) | print "Plugin %s doesn't have 'Plugin'-call." % (pluginname) | def readPluginList(self, directory): """enumerates plugins""" categories = os.listdir(directory) new_plugins = [ ] for c in categories: directory_category = directory + c if not os.path.isdir(directory_category): continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category):... |
print "Plugin ", path, "failed to load:", exc | print "Plugin ", c + "/" + pluginname, "failed to load:", exc | def readPluginList(self, directory): """enumerates plugins""" categories = os.listdir(directory) new_plugins = [ ] for c in categories: directory_category = directory + c if not os.path.isdir(directory_category): continue open(directory_category + "/__init__.py", "a").close() for x in os.listdir(directory_category):... |
return self.satellites[str(pos)] | return self.satellites[pos] | def getSatDescription(self, pos): return self.satellites[str(pos)] |
self.pathChangedDisabled = True | self.pathChangedDisabled = False | def toggleMoveMode(self): if self.movemode: if self.entry_marked: self.toggleMoveMarked() # unmark current entry self.movemode = False self.pathChangedDisabled = True # re-enable path change self.mutableList.flushChanges() # FIXME add check if changes was made self.mutableList = None self.instance.setTitle(self.saved_t... |
if not os.path.exists(cachedir): os.mkdir(cachedir) | def showThumb(self): if self.thumblist[self.thumbindex] != "": cachefile = "" if config.pic.cache.value: cachedir = self.path + ".Thumbnails/" if not os.path.exists(cachedir): os.mkdir(cachedir) cachefile = cachedir + self.thumblist[self.thumbindex] + str(180) + str(160) + str(self.aspect) | |
if not os.path.exists(currDir): | if not pathExists(currDir): | def __init__(self, session): self.skin = picmain.skin Screen.__init__(self, session) |
print self.filelist.getCurrentDirectory() | def showThumb(self): if not self.filelist.canDescent(): print self.filelist.getCurrentDirectory() cachefile = "" if config.pic.cache.value: cachedir = self.filelist.getCurrentDirectory() + ".Thumbnails/" if not os.path.exists(cachedir): os.mkdir(cachedir) cachefile = cachedir + self.filelist.getSelection()[0] + str(180... | |
if not os.path.exists(cachedir): os.mkdir(cachedir) cachefile = cachedir + self.filelist.getSelection()[0] + str(180) + str(160) + str(self.aspect) ptr = loadPic(self.filelist.getCurrentDirectory() + self.filelist.getSelection()[0], 180, 160, self.aspect, int(config.pic.resize.value), 0, 0, cachefile) | cachefile = cachedir + self.filelist.getFilename() + str(180) + str(160) + str(self.aspect) if not pathExists(cachedir): if not createDir(cachedir): cachefile = "" ptr = loadPic(self.filelist.getCurrentDirectory() + self.filelist.getFilename(), 180, 160, self.aspect, int(config.pic.resize.value), 0, 0, cachefile) | def showThumb(self): if not self.filelist.canDescent(): print self.filelist.getCurrentDirectory() cachefile = "" if config.pic.cache.value: cachedir = self.filelist.getCurrentDirectory() + ".Thumbnails/" if not os.path.exists(cachedir): os.mkdir(cachedir) cachefile = cachedir + self.filelist.getSelection()[0] + str(180... |
self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory()) | self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getFilename(), self.filelist.getCurrentDirectory()) | def KeyOk(self): if self.filelist.canDescent(): self.filelist.descent() else: self.session.openWithCallback(self.returnVal, PicView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory()) |
self.session.openWithCallback(self.returnVal, ThumbView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory()) | self.session.openWithCallback(self.returnVal, ThumbView, self.filelist.getFileList(), self.filelist.getFilename(), self.filelist.getCurrentDirectory()) | def StartThumb(self): self.session.openWithCallback(self.returnVal, ThumbView, self.filelist.getFileList(), self.filelist.getSelection()[0], self.filelist.getCurrentDirectory()) |
self.session.open(ExifView, self.filelist.getCurrentDirectory() + self.filelist.getFilename(), self.filelist.getSelection()[0]) | self.session.open(ExifView, self.filelist.getCurrentDirectory() + self.filelist.getFilename(), self.filelist.getFilename()) | def StartExif(self): if not self.filelist.canDescent(): self.session.open(ExifView, self.filelist.getCurrentDirectory() + self.filelist.getFilename(), self.filelist.getSelection()[0]) |
assert screen == self.current_dialog | def close(self, screen, *retval): if not self.in_exec: print "close after exec!" return # be sure that the close is for the right dialog! # if it's not, you probably closed after another dialog # was opened. this can happen if you open a dialog # onExecBegin, and forget to do this only once. # after close of the top d... | |
def transponder(self): frontendData = self.feinfo.getFrontendData(True) | def showFrontendData(self, real): frontendData = self.feinfo and self.feinfo.getFrontendData(real) | def transponder(self): frontendData = self.feinfo.getFrontendData(True) Labels = self.getFEData(frontendData) self.fillList(Labels) |
frontendData = self.feinfo.getFrontendData(False) Labels = self.getFEData(frontendData) self.fillList(Labels) | self.showFrontendData(False) | def tuner(self): frontendData = self.feinfo.getFrontendData(False) Labels = self.getFEData(frontendData) self.fillList(Labels) |
print item | def fillList(self, Labels): tlist = [ ] | |
self.pip.show() | newservice = str(ServiceReference(self.session.nav.getCurrentlyPlayingServiceReference())) + "s" self.pipservice = eServiceCenter.getInstance().play(eServiceReference(newservice)) self.pipservice.start() | def extensionCallback(self, answer): if answer[1] == "pipon": self.pip = self.session.instantiateDialog(PictureInPicture) self.pip.show() self.pipshown = True print "would show PiP now" elif answer[1] == "pipoff": self.pip.hide() del self.pip self.pipshown = False |
print "would show PiP now" | def extensionCallback(self, answer): if answer[1] == "pipon": self.pip = self.session.instantiateDialog(PictureInPicture) self.pip.show() self.pipshown = True print "would show PiP now" elif answer[1] == "pipoff": self.pip.hide() del self.pip self.pipshown = False | |
self.pip.hide() | def extensionCallback(self, answer): if answer[1] == "pipon": self.pip = self.session.instantiateDialog(PictureInPicture) self.pip.show() self.pipshown = True print "would show PiP now" elif answer[1] == "pipoff": self.pip.hide() del self.pip self.pipshown = False | |
serviceString = str(ServiceReference(args)) | serviceString = str(ServiceReference(args[0])) | def finishedChannelSelection(self, *args): if len(args): serviceString = str(ServiceReference(args)) if not self.alternatives.has_key(serviceString): self.alternatives[serviceString] = [] self.updateServices() self.selectService(serviceString) self.updateAlternatives() |
def playService(self, ref): | def playService(self, ref, **kwargs): | def playService(self, ref): #print "--------------------Alternatives: trying to play service", str(ServiceReference(ref)) if ref is not None: servicechanged.lastPlayAction = str(ServiceReference(ref)) servicechanged.nextPlayTry = 0 result = oldPlayService(ref) return result |
result = oldPlayService(ref) | result = oldPlayService(ref, **kwargs) | def playService(self, ref): #print "--------------------Alternatives: trying to play service", str(ServiceReference(ref)) if ref is not None: servicechanged.lastPlayAction = str(ServiceReference(ref)) servicechanged.nextPlayTry = 0 result = oldPlayService(ref) return result |
doc = xml.dom.minidom.parse(self.filename) | doc = xml.dom.minidom.parse(resolveFilename(SCOPE_CONFIG, "alternatives.xml")) | def loadAlternatives(): doc = xml.dom.minidom.parse(self.filename) root = doc.childNodes[0] for service in elementsWithTag(root.childNodes, 'service'): newService = str(service.getAttribute('ref')) for alternative in elementsWithTag(service.childNodes, 'alternative'): newAlternative = str(alternative.getAttribute('ref... |
menuList = ConfigList(list) | menuList = ConfigList(self.list) | def __init__(self, session): Screen.__init__(self, session) |
self.list.append( (_("Reset"), 0, slot) ) self.list.append( (_("Init"), 1, slot) ) | self.list.append( (_("Reset"), ConfigDummy(), 0, slot) ) self.list.append( (_("Init"), ConfigDummy(), 1, slot) ) | def appendEntries(self, slot, state): self.state[slot] = state self.list.append( (_("Reset"), 0, slot) ) self.list.append( (_("Init"), 1, slot) ) |
self.list.append( (_("no module found"), 2, slot) ) | self.list.append( (_("no module found"), ConfigDummy(), 2, slot) ) | def appendEntries(self, slot, state): self.state[slot] = state self.list.append( (_("Reset"), 0, slot) ) self.list.append( (_("Init"), 1, slot) ) |
self.list.append( (_("init module"), 2, slot) ) | self.list.append( (_("init module"), ConfigDummy(), 2, slot) ) | def appendEntries(self, slot, state): self.state[slot] = state self.list.append( (_("Reset"), 0, slot) ) self.list.append( (_("Init"), 1, slot) ) |
self.list.append( (appname, 2, slot) ) | self.list.append( (appname, ConfigDummy(), 2, slot) ) | def appendEntries(self, slot, state): self.state[slot] = state self.list.append( (_("Reset"), 0, slot) ) self.list.append( (_("Init"), 1, slot) ) |
self.list[slotidx] = (_("no module found"), 2, slot) | self.list[slotidx] = (_("no module found"), ConfigDummy(), 2, slot) | def updateState(self, slot): state = eDVBCI_UI.getInstance().getState(slot) self.state[slot] = state |
self.list[slotidx] = (_("init module"), 2, slot) | self.list[slotidx] = (_("init module"), ConfigDummy(), 2, slot) | def updateState(self, slot): state = eDVBCI_UI.getInstance().getState(slot) self.state[slot] = state |
self.list[slotidx] = (appname, 2, slot) | self.list[slotidx] = (appname, ConfigDummy(), 2, slot) | def updateState(self, slot): state = eDVBCI_UI.getInstance().getState(slot) self.state[slot] = state |
action = cur[1] slot = cur[2] | action = cur[2] slot = cur[3] | def okbuttonClick(self): cur = self["entries"].getCurrent() if cur and len(cur) > 2: action = cur[1] slot = cur[2] if action == 0: #reset eDVBCI_UI.getInstance().setReset(slot) elif action == 1: #init eDVBCI_UI.getInstance().setInit(slot) elif self.state[slot] == 2: self.dlg = self.session.openWithCallback(self.dlgCl... |
if (condition): | if condition: self.state = self.SHOWN else: | def activateCondition(self, condition): if (condition): self.state = self.HIDDEN else: self.state = self.SHOWN |
else: self.state = self.SHOWN | def activateCondition(self, condition): if (condition): self.state = self.HIDDEN else: self.state = self.SHOWN | |
print "timer %s got activated (%d)!" % (self.description, event) | print "[timer.py] timer %s got activated (%d)!" % (self.description, event) | def activate(self, event): print "timer %s got activated (%d)!" % (self.description, event) |
bisect.insort(self.timer_list, entry) self.calcNextActivation() | if entry.end > time.time(): bisect.insort(self.timer_list, entry) self.calcNextActivation() else: bisect.insort(self.process_timers, entry) | def addTimerEntry(self, entry): bisect.insort(self.timer_list, entry) self.calcNextActivation() |
delay = int((when - time()) * 1000) print "next activation: %d (in %d ms)" % (when, delay) | delay = int((when - time.time()) * 1000) print "[timer.py] next activation: %d (in %d ms)" % (when, delay) | def setNextActivation(self, when): delay = int((when - time()) * 1000) print "next activation: %d (in %d ms)" % (when, delay) self.timer.start(delay, 1) self.next = when |
min = int(time()) + self.MaxWaitTime | min = int(time.time()) + self.MaxWaitTime | def calcNextActivation(self): self.processActivation() min = int(time()) + self.MaxWaitTime # calculate next activation point if len(self.timer_list): w = self.timer_list[0].getTime() if w < min: min = w self.setNextActivation(min) |
t = int(time()) + 1 | t = int(time.time()) + 1 | def processActivation(self): t = int(time()) + 1 # we keep on processing the first entry until it goes into the future. while len(self.timer_list) and self.timer_list[0].getTime() < t: self.doActivate(self.timer_list[0]) |
self.record_service.stop() self.record_service = None | if not self.justplay: self.record_service.stop() self.record_service = None | def activate(self): next_state = self.state + 1 self.log(5, "activating state %d" % next_state) if next_state == self.StatePrepared: if self.tryPrepare(): self.log(6, "prepare ok, waiting for begin") # fine. it worked, resources are allocated. self.next_activation = self.begin self.backoff = 0 return True self.log(7,... |
self.diseqc = Diseqc(self.feid) | self.diseqc = Diseqc(self.frontend) | def __init__(self, session, feid): self.skin = PositionerSetup.skin Screen.__init__(self, session) self.feid = feid self.oldref = None if not self.openFrontend(): self.oldref = session.nav.getCurrentlyPlayingServiceReference() session.nav.stopService() # try to disable foreground service if not self.openFrontend(): if... |
config.radio.lastroot.value = self.getRoot().toString() config.radio.lastroot.save() | def channelSelected(self): # just return selected service ref = self.getCurrentSelection() if self.movemode: self.toggleMoveMarked() elif (ref.flags & 7) == 7: self.setRoot(ref) elif self.bouquet_mark_edit: self.doMark() else: self.session.nav.playService(ref) self.servicelist.setPlayableIgnoreService(ref) config.radio... | |
lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.servicelist.setCurrent(lastservice) | def closeRadio(self): self.info.instance.hide() lastroot=eServiceReference(config.radio.lastroot.value) lastservice=eServiceReference(config.radio.lastservice.value) if lastroot.valid() and self.getRoot() != lastroot: self.setRoot(lastroot) if lastservice.valid() and self.getCurrentSelection() != lastservice: self.serv... | |
f.write(str(rec_ref) + "\n") | f.write(rec_ref.toString() + "\n") | def tryPrepare(self): if self.justplay: return True else: self.calculateFilename() rec_ref = self.service_ref and self.service_ref.ref if rec_ref and rec_ref.flags & eServiceReference.isGroup: rec_ref = getBestPlayableServiceReference(rec_ref, eServiceReference()) if not rec_ref: self.log(1, "'get best playable service... |
if nim.configMode.value == 0: | if nim.configMode.value == 1: self.linkNIMs(x, nim.linkedTo.value) nim = config.Nims[nim.linkedTo.value] if nim.configMode.value == 0 or nim.configMode.value == 1: | def update(self): eDVBSatelliteEquipmentControl.getInstance().clear() self.satList = [] |
self.sec.setTunerLinked(slotid, nimmgr.getConfigPrefix(slotid).value) | def nimConfigModeChanged(self, slotid, mode): if (mode != 1): # not linked print "Unlinking slot " + str(slotid) # TODO call c++ to unlink nim in slot slotid if (mode == 1): # linked if (len(self.getNimListOfType(self.nimType["DVB-S"], slotid)) > 0): print "Linking slot " + str(slotid) + " to " + str(nimmgr.getConfigPr... | |
self.sec.setTunerLinked(slotid, val) | def nimLinkedToChanged(self, slotid, val): print "Linking slot " + str(slotid) + " to " + str(val) self.sec.setTunerLinked(slotid, val) # TODO call c++ to link nim in slot slotid with nim in slot val | |
maxPos = len(self.parent.value) * self.parent.vals[1] print maxPos | maxPos = len(self.parent.value) * len(self.parent.vals[1]) + len(self.parent.value) | def checkValues(self): maxPos = len(self.parent.value) * self.parent.vals[1] print maxPos if self.markedPos >= maxPos: self.markedPos = maxPos - 1 if self.markedPos < 0: self.markedPos = 0 |
HelpableActionMap.action(self, contexts, action) | return HelpableActionMap.action(self, contexts, action) | def action(self, contexts, action): if action[:5] == "seek:": time = int(action[5:]) self.screen.seekRelative(time * 90000) else: HelpableActionMap.action(self, contexts, action) |
from Screens.PVRState import PVRState | from Screens.PVRState import PVRState, TimeshiftState | def seekRelative(self, diff): seekable = self.getSeek() if seekable is not None: seekable.seekRelative(1, diff) |
def __init__(self): | def __init__(self, screen=PVRState): | def __init__(self): self.onPlayStateChanged.append(self.__playStateChanged) self.pvrStateDialog = self.session.instantiateDialog(PVRState) self.onShow.append(self.__mayShow) self.onHide.append(self.pvrStateDialog.hide) |
self.pvrStateDialog = self.session.instantiateDialog(PVRState) | self.pvrStateDialog = self.session.instantiateDialog(screen) | def __init__(self): self.onPlayStateChanged.append(self.__playStateChanged) self.pvrStateDialog = self.session.instantiateDialog(PVRState) self.onShow.append(self.__mayShow) self.onHide.append(self.pvrStateDialog.hide) |
parm.modulation = 5 | parm.modulation = x[3] | def getInitialCableTransponderList(tlist, cable): print "cable", cable list = nimmanager.getTranspondersCable(cable) for x in list: if x[0] == 1: #CABLE print "[ScanSetup] cable-transponder to add:", x parm = eDVBFrontendParametersCable() parm.frequency = x[1] parm.symbol_rate = x[2] parm.modulation = 5 # AUTO parm.f... |
parm.inversion = 2 | parm.inversion = x[4] | def getInitialCableTransponderList(tlist, cable): print "cable", cable list = nimmanager.getTranspondersCable(cable) for x in list: if x[0] == 1: #CABLE print "[ScanSetup] cable-transponder to add:", x parm = eDVBFrontendParametersCable() parm.frequency = x[1] parm.symbol_rate = x[2] parm.modulation = 5 # AUTO parm.f... |
config.scan.cab.frequency = configElement_nonSave("config.scan.cab.frequency", configSequence, [466], configsequencearg.get("INTEGER", (50, 9999))) | config.scan.cab.frequency = configElement_nonSave("config.scan.cab.frequency", configSequence, [466], configsequencearg.get("INTEGER", (50, 999))) | def createConfig(self): config.scan = ConfigSubsection() config.scan.sat = ConfigSubsection() config.scan.cab = ConfigSubsection() config.scan.ter = ConfigSubsection() |
config.scan.cab.modulation = configElement_nonSave("config.scan.cab.modulation", configSelection, 2, (("16qam", "16-QAM"), ("32qam", "32-QAM"), ("64qam", "64-QAM"), ("128qam", "128-QAM"), ("256qam", "256-QAM"), ("auto", _("Auto")))) config.scan.cab.fec = configElement_nonSave("config.scan.cab.fec", configSelection, 9, ... | config.scan.cab.modulation = configElement_nonSave("config.scan.cab.modulation", configSelection, 2, (("auto", _("Auto")), ("16qam", "16-QAM"), ("32qam", "32-QAM"), ("64qam", "64-QAM"), ("128qam", "128-QAM"), ("256qam", "256-QAM"))) config.scan.cab.fec = configElement_nonSave("config.scan.cab.fec", configSelection, 0, ... | def createConfig(self): config.scan = ConfigSubsection() config.scan.sat = ConfigSubsection() config.scan.cab = ConfigSubsection() config.scan.ter = ConfigSubsection() |
seek = service.seek(seek) | seek = service.seek() | def setType(self, type): self.type = type seek = iSeekableServicePtr() service = self.navcore.getCurrentService() self.updateTimer.stop() self.available = 0 if service != None: seek = service.seek(seek) if seek != None: if self.type != self.TYPE_LENGTH: self.updateTimer.start(500) self.length = self.get(self.TYPE_L... |
seek = service.seek(seek) | seek = service.seek() | def get(self, what): service = self.navcore.getCurrentService() if service != None: seek = service.seek(seek) if seek != None: if what == self.TYPE_LENGTH: r = seek.getLength() elif what == self.TYPE_POSITION: r = seek.getPlayPosition() if not r[0]: return r[1] / 90000 return -1 |
list.append(("DEBUG: Enable Subtitles: " + x[0], self.ENABLE_SUBTITLE, x)) | list.append(("DEBUG: Enable Subtitles: " + x[0], self.ENABLE_SUBTITLE, x[1])) | def extensions(self): list = [] if self.pipshown == False: list.append((_("Activate Picture in Picture"), self.PIPON)) elif self.pipshown == True: list.append((_("Disable Picture in Picture"), self.PIPOFF)) list.append((_("Move Picture in Picture"), self.MOVEPIP)) list.append((_("Swap services"), self.PIPSWAP)) s = se... |
subtitle.enableSubtitles(self.subtitle_window.instance, self.selected_subtitle[1]) | subtitle.enableSubtitles(self.subtitle_window.instance, self.selected_subtitle) | def setSubtitlesEnable(self, enable=True): subtitle = self.getCurrentServiceSubtitle() if enable and self.__selected_subtitle: if subtitle and not self.__subtitles_enabled: subtitle.enableSubtitles(self.subtitle_window.instance, self.selected_subtitle[1]) self.subtitle_window.show() self.__subtitles_enabled = True else... |
subtitle = self.getCurrentServiceSubtitle() | def setSelectedSubtitle(self, subtitle): if self.__selected_subtitle != subtitle and self.subtitles_enabled: subtitle = self.getCurrentServiceSubtitle() # kick self.__serviceStarted() self.__selected_subtitle = subtitle | |
self.__selected_subtitle = subtitle | else: self.__selected_subtitle = subtitle | def setSelectedSubtitle(self, subtitle): if self.__selected_subtitle != subtitle and self.subtitles_enabled: subtitle = self.getCurrentServiceSubtitle() # kick self.__serviceStarted() self.__selected_subtitle = subtitle |
class FixedMenu(Screen): def okbuttonClick(self): selection = self["menu"].getCurrent() selection[1]() def __init__(self, session, title, list): Screen.__init__(self, session) self["menu"] = MenuList(list) self["actions"] = ActionMap(["OkCancelActions"], { "ok": self.okbuttonClick, "cancel": self.close }) self["tit... | def __init__(self, session, parent, childNode): Screen.__init__(self, session) list = [] | |
config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (hold feeds)")))) | config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (keep feeds)")))) | def createConfig(self): config.scan = ConfigSubsection() config.scan.sat = ConfigSubsection() config.scan.cab = ConfigSubsection() config.scan.ter = ConfigSubsection() |
config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (hold feeds)")))) | config.scan.clearallservices = configElement_nonSave("config.scan.clearallservices", configSelection, 0, (("no", _("no")), ("yes", _("yes")), ("yes_hold_feeds", _("yes (keep feeds)")))) | def __init__(self, session): Screen.__init__(self, session) |
res = [ None ] | res = [ 0 ] | def LanguageEntryComponent(file, name): res = [ None ] res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 10, 200, 50, 0, RT_HALIGN_LEFT ,name)) png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/countries/" + file + ".png")) if png == None: png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/countries/missing.png")) r... |
self.source.disconnectDownstream(self) | if self.source: self.source.disconnectDownstream(self) | def disconnectAll(self): # we should not disconnect from upstream if # there are still elements depending on us. assert len(self.downstream_elements) == 0, "there are still downstream elements left" self.source.disconnectDownstream(self) |
self.copyFile() | self.playlist.clear() self.copyDirectory(os.path.dirname(self.filelist.getSelection()[0].getPath()) + "/", recursive = False) self.playServiceRefEntry(self.filelist.getServiceRef()) | def ok(self): if self.currList == "filelist": if self.filelist.canDescent(): self.filelist.descent() self.updateCurrentInfo() else: self.copyFile() if self.currList == "playlist": selection = self["playlist"].getSelection() self.changeEntry(self.playlist.getSelectionIndex()) |
def copyDirectory(self, directory): | def copyDirectory(self, directory, recursive = True): print "copyDirectory", directory | def copyDirectory(self, directory): filelist = FileList(directory, useServiceRef = True, isTop = True) |
self.copyDirectory(x[0][0]) | if recursive: self.copyDirectory(x[0][0]) | def copyDirectory(self, directory): filelist = FileList(directory, useServiceRef = True, isTop = True) |
now = int(time.time()) | now = int(time.time()) + 1 | def processRepeated(self): print "ProcessRepeated" if (self.repeated != 0): now = int(time.time()) day = [] flags = self.repeated for x in range(0, 7): if (flags & 1 == 1): day.append(0) else: day.append(1) flags = flags >> 1 |
while ((day[time.localtime(self.begin).tm_wday] != 0) and (self.end < now)): print str(now) + " " + str(self.end) + " " + str(self.begin) | print time.strftime("%c", time.localtime(now)) print time.strftime("%c", time.localtime(self.begin)) print time.strftime("%c", time.localtime(self.end)) print str(time.localtime(self.begin).tm_wday) while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.end < n... | def processRepeated(self): print "ProcessRepeated" if (self.repeated != 0): now = int(time.time()) day = [] flags = self.repeated for x in range(0, 7): if (flags & 1 == 1): day.append(0) else: day.append(1) flags = flags >> 1 |
try: self.timer_list.remove(timer) except: pass | self.timer_list.remove(timer) | def timeChanged(self, timer): try: self.timer_list.remove(timer) except: pass self.addTimerEntry(timer) |
try: self.timer_list.remove(w) except: pass | self.timer_list.remove(w) | def doActivate(self, w): w.activate(w.state) try: self.timer_list.remove(w) except: pass |
if (w.repeated == 0): bisect.insort(self.processed_timers, w) else: | bisect.insort(self.processed_timers, w) if (w.repeated != 0): | def doActivate(self, w): w.activate(w.state) try: self.timer_list.remove(w) except: pass |
self.timeChanged(w) | self.addTimerEntry(w) | def doActivate(self, w): w.activate(w.state) try: self.timer_list.remove(w) except: pass |
self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') | self.bouquet_rootstr = '1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet' | def recallBouquetMode(self): if self.mode == MODE_TV: self.service_types = self.service_types_tv if currentConfigSelectionElement(config.usage.multibouquet) == "yes": self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') else: self.bouquet_root = eServiceRe... |
self.bouquet_root = eServiceReference('%s FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet'%(self.service_types)) | self.bouquet_rootstr = '%s FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet'%(self.service_types) | def recallBouquetMode(self): if self.mode == MODE_TV: self.service_types = self.service_types_tv if currentConfigSelectionElement(config.usage.multibouquet) == "yes": self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') else: self.bouquet_root = eServiceRe... |
self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.radio" ORDER BY bouquet') | self.bouquet_rootstr = '1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.radio" ORDER BY bouquet' | def recallBouquetMode(self): if self.mode == MODE_TV: self.service_types = self.service_types_tv if currentConfigSelectionElement(config.usage.multibouquet) == "yes": self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') else: self.bouquet_root = eServiceRe... |
self.bouquet_root = eServiceReference('%s FROM BOUQUET "userbouquet.favourites.radio" ORDER BY bouquet'%(self.service_types)) | self.bouquet_rootstr = '%s FROM BOUQUET "userbouquet.favourites.radio" ORDER BY bouquet'%(self.service_types) self.bouquet_root = eServiceReference(self.bouquet_rootstr) | def recallBouquetMode(self): if self.mode == MODE_TV: self.service_types = self.service_types_tv if currentConfigSelectionElement(config.usage.multibouquet) == "yes": self.bouquet_root = eServiceReference('1:7:1:0:0:0:0:0:0:0:(type == 1) FROM BOUQUET "bouquets.tv" ORDER BY bouquet') else: self.bouquet_root = eServiceRe... |
ref = eServiceReference('%s ORDER BY name'%(self.service_types)) self.clearPath() self.enterPath(ref) | refstr = '%s ORDER BY name'%(self.service_types) if not self.preEnterPath(refstr): ref = eServiceReference(refstr) currentRoot = self.getRoot() if currentRoot is None or currentRoot != ref: self.clearPath() self.enterPath(ref) | def showAllServices(self): ref = eServiceReference('%s ORDER BY name'%(self.service_types)) self.clearPath() self.enterPath(ref) |
justSet=False prev = None ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types)) if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: justSet=True self.clearPath() self.enterPath(ref, True) if justSet: serviceHandler = eService... | refstr = '%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types) if not self.preEnterPath(refstr): ref = eServiceReference(refstr) justSet=False prev = None if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: currentRoot = self.getRoot() if currentRoo... | def showSatellites(self): justSet=False prev = None ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types)) if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: justSet=True self.clearPath() self.enterPath(ref, True) if justSet:... |
service.setName("%s (%3.1f" + _("E") + ")" % (str, orbpos / 10.0)) self.servicelist.addService(service) self.servicelist.finishFill() if prev is not None: self.setCurrentSelection(prev) | service_name = _("Services") try: service_name += str(' - %s'%(nimmanager.getSatDescription(orbpos))) service.setName(service_name) except: if orbpos > 1800: service.setName("%s (%3.1f" + _("W") + ")" %(str, (0 - (orbpos - 3600)) / 10.0)) else: service.setName("%s (%3.1f" + _("E") + ")" % (str, orbpos / 10.0)) self.se... | def showSatellites(self): justSet=False prev = None ref = eServiceReference('%s FROM SATELLITES ORDER BY satellitePosition'%(self.service_types)) if self.isBasePathEqual(ref): if self.isPrevPathEqual(ref): justSet=True prev = self.pathUp(justSet) else: justSet=True self.clearPath() self.enterPath(ref, True) if justSet:... |
ref = eServiceReference('%s FROM PROVIDERS ORDER BY name'%(self.service_types)) if self.isBasePathEqual(ref): self.pathUp() else: self.clearPath() self.enterPath(ref) | refstr = '%s FROM PROVIDERS ORDER BY name'%(self.service_types) if not self.preEnterPath(refstr): ref = eServiceReference(refstr) if self.isBasePathEqual(ref): self.pathUp() else: currentRoot = self.getRoot() if currentRoot is None or currentRoot != ref: self.clearPath() self.enterPath(ref) | def showProviders(self): ref = eServiceReference('%s FROM PROVIDERS ORDER BY name'%(self.service_types)) if self.isBasePathEqual(ref): self.pathUp() else: self.clearPath() self.enterPath(ref) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.