def VideoLinks2(name, url): link = xbmctools.get_url(url) match = re.compile('"mediaUrl":"(.*?)"').findall(link) for url in match: if match > 1: del match[1] url = url.replace('\\', '') xbmcPlayer = xbmc.Player() playList = xbmc.PlayList(xbmc.PLAYLIST_VIDEO) playList.clear() xbmctools.addLink( '[COLOR blue][B]' + 'RETURN List <<' + ' [/B][/COLOR]', '', 'http://png-4.findicons.com/files/icons/1714/dropline_neu/128/edit_undo.png' ) listitem = xbmcgui.ListItem(name) playList.add(url, listitem) xbmcPlayer.play(playList) exec_version = float( str(xbmc.getInfoLabel("System.BuildVersion"))[0:4]) if exec_version < 14.0: xbmctools.playlist() else: xbmctools.playlist2()
def VideoLinks(name, url): xbmcPlayer = xbmc.Player() playList = xbmc.PlayList(xbmc.PLAYLIST_VIDEO) playList.clear() xbmctools.addLink("RETURN List << ", "", "") listitem = xbmcgui.ListItem(name) playList.add(url, listitem) xbmcPlayer.play(playList) exec_version = float(str(xbmc.getInfoLabel("System.BuildVersion"))[0:4]) if exec_version < 14.0: xbmctools.playlist() else: xbmctools.playlist2()
def VideoLinks(name, url): xbmcPlayer = xbmc.Player() playList = xbmc.PlayList(xbmc.PLAYLIST_VIDEO) playList.clear() xbmctools.addLink('RETURN List << ', '', '') listitem = xbmcgui.ListItem(name) playList.add(url, listitem) xbmcPlayer.play(playList) exec_version = float(str(xbmc.getInfoLabel("System.BuildVersion"))[0:4]) if exec_version < 14.0: xbmctools.playlist() else: xbmctools.playlist2()
def VideoLinks2(name,url): link=xbmctools.get_url(url) match=re.compile('"mediaUrl":"(.*?)"').findall(link) for url in match: if match >1: del match [1] url=url.replace('\\','') xbmcPlayer = xbmc.Player() playList = xbmc.PlayList(xbmc.PLAYLIST_VIDEO) playList.clear() xbmctools.addLink('[COLOR blue][B]'+'RETURN List <<'+' [/B][/COLOR]','','http://png-4.findicons.com/files/icons/1714/dropline_neu/128/edit_undo.png') listitem = xbmcgui.ListItem(name) playList.add(url, listitem) xbmcPlayer.play(playList) exec_version = float(str(xbmc.getInfoLabel("System.BuildVersion"))[0:4]) if exec_version < 14.0: xbmctools.playlist() else: xbmctools.playlist2()
for i in range(len(input)): xor_num = ord(input[i]) ^ ord(key[i % len(key)]) output.append(chr(xor_num)) return ''.join(output) url = 'http://koditr.org/changelog/yetiskin.xml' link=xbmctools.get_url(url) match5=re.compile('name="(.*?)"').findall(link) name1=" \n".join(match5) match1=re.compile('duyuru="(.*?)"').findall(link) duyuru=" \n".join(match1) #MESSAGE_TITLE = 101 if xbmc.getInfoLabel( "System.BuildVersion" )[:2] == '14': xbmctools.playlist2() else: pass class Anapencere( xbmcgui.WindowXMLDialog ): def __init__( self, *args, **kwargs ): self.shut = kwargs['close_time'] xbmc.executebuiltin( "Skin.Reset(AnimeWindowXMLDialogClose)" ) xbmc.executebuiltin( "Skin.SetBool(AnimeWindowXMLDialogClose)" ) pass def setTableText(self, tab): self.tabText = tab def getTableText(self): return self.tabText