Re: Архив: nStreamVOD - Enigma2 VOD/IPTV Player (1.0-1.1)
Или хотя бы модель ресивера и прошивки в подписи обозначить
Или хотя бы модель ресивера и прошивки в подписи обозначить
62 def __instance(self): 63 if self.__inst is not None: 64 return self.__inst 65 for x in self.downstream_elements: 66 if isinstance(x, TemplatedMultiContent): 67 for y in x.downstream_elements: 68 if isinstance(y, ListboxRenderer): 69 self.__inst = y.instance 70 return self.__inst 71 return None
<convert type="TemplatedMultiContent"> {"template": [ MultiContentEntryText(pos = (0, 1), size = (710, 28), font=1, flags = RT_HALIGN_LEFT, text = 1), # index 1 is the name MultiContentEntryText(pos = (720, 1), size = (150, 28), font=1, flags = RT_HALIGN_RIGHT, text = 2), # index 2 is the state MultiContentEntryProgress(pos = (880, 1), size = (100, 28), percent = -3), # index 3 should be progress MultiContentEntryText(pos = (990, 1), size = (60, 28), font=1, flags = RT_HALIGN_RIGHT, text = 4), # index 4 is the percentage ], "fonts": [gFont("Regular", 26),gFont("Regular", 22)], "itemHeight": 29 } </convert>
def channelEntryIPTVplaylist(entry): menu_entry = [entry, (eListboxPythonMultiContent.TYPE_TEXT,7,10,40,33,1,RT_HALIGN_CENTER,'%s' % entry[0]), (eListboxPythonMultiContent.TYPE_TEXT,55,7,670,22,1,RT_HALIGN_LEFT,entry[1]), #(eListboxPythonMultiContent.TYPE_TEXT,350,7,370,22,1,RT_HALIGN_LEFT,entry[3]), #(eListboxPythonMultiContent.TYPE_PIXMAP_ALPHATEST, 50, 28, 680, 3, loadPNG('%s/img/slider_1280x10_hbg.png' % PLUGIN_PATH)) ]
self.mlist = MenuList([], enableWrapAround=True, content=eListboxPythonMultiContent) self.mlist.setList(map(channelEntryIPTVplaylist, self.channel_list))
<widget backgroundColor="un15000000" backgroundColorSelected="#000a1822" colorEventProgressbar="#0052178b" colorEventProgressbarBorder="#00a88cff" colorEventProgressbarBorderSelected="#FFC387" colorServiceDescription="#00999999" colorServiceDescriptionSelected="#00a88cff" foregroundColor="white" foregroundColorSelected="white" name="list" picServiceArchive="KartinaTV_skin/rec.png" position="35,109" scrollbarMode="showOnDemand" serviceInfoFont="listb2;21" serviceItemHeight="28" serviceNameFont="listb2;23" serviceNumberFont="listb2;23" size="686,506" transparent="1" />
def applySkin(self, desktop, parent): attribs = [ ] if self.skinAttributes is not None: attribs = [ ] for (attrib, value) in self.skinAttributes: elif attrib == "serviceInfoFont": self.l.setFont(1, parseFont(value, ((1,1),(1,1))) ) self.fontCalc[1].setFont( parseFont(value, ((1,1),(1,1))) elif attrib == "serviceItemHeight": self.itemHeight = int(value) elif attrib == "serviceNameFont": self.l.setFont(0, parseFont(value, ((1,1),(1,1))) ) self.fontCalc[0].setFont( parseFont(value, ((1,1),(1,1))) ) elif attrib == "serviceNumberFont": self.l.setFont(2, parseFont(value, ((1,1),(1,1))) ) self.fontCalc[2].setFont( parseFont(value, ((1,1),(1,1))) )
Комментарий