예제 #1
0
파일: default.py 프로젝트: noba3/KoTos
def Youtube_Player2(url):
        playList.clear()   
        code=re.match(r"http://www.youtube.com/embed/(.*?)$", url).group(1)
        print '[code]'+str(code)
        url='plugin://plugin.video.youtube/?action=play_video&videoid=' + code
        name='MagicTR Reklam'
        araclar.addLink(name,url,'')
        araclar.playlist_yap(playList,name,url)
        xbmcPlayer.play(playList)
예제 #2
0
def Youtube_Player(url):
    playList.clear()
    code = re.match(r"http://www.youtube.com/embed/(.*?)$", url).group(1)
    print '[code]' + str(code)
    url = 'plugin://plugin.video.youtube/play/?video_id=' + code
    name = 'MagicTR Reklam'
    araclar.addLink(name, url, '')
    araclar.playlist_yap(playList, name, url)
    xbmcPlayer.play(playList)
예제 #3
0
def magix_player(name, url):

    if "mail.ru" in url:
        MailRu_Player(url)
    if "ok.ru" in url:
        ok_ru(url)

    else:

        UrlResolverPlayer = url
        playList.clear()
        media = urlresolver.HostedMediaFile(UrlResolverPlayer)
        source = media
        if source:
            url = source.resolve()
            araclar.addLink(name, url, '')
            araclar.playlist_yap(playList, name, url)
            xbmcPlayer.play(playList)
예제 #4
0
파일: cozucu.py 프로젝트: noba3/KoTos
def magix_player(name,url):
    

        if "mail.ru" in url:
            MailRu_Player(url)
        if "ok.ru" in url:
            ok_ru(url)

                
        else:
            
                          
            
            UrlResolverPlayer = url
            playList.clear()
            media = urlresolver.HostedMediaFile(UrlResolverPlayer)
            source = media
            if source:
                    url = source.resolve()
                    araclar.addLink(name,url,'')
                    araclar.playlist_yap(playList,name,url)
                    xbmcPlayer.play(playList)