Пример #1
0
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()
Пример #2
0
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()
Пример #3
0
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()
Пример #4
0
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()