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)
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)
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)
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)