def PLAY_STREAM(name,url,iconimage):
dp = xbmcgui.DialogProgress()
r=' Please Wait While We Load [COLOR yellow][B]%s[/B][/COLOR]'%(name)
dp.create("NotFilmOn",'',r,'')
programme_id=str(iconimage).replace('http://static.filmon.com/couch/channels/','').replace('/big_logo.png','')
GA_track(programme_id,name)
liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name} )
liz.setProperty("IsPlayable","true")
pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
pl.clear()
pl.add(url, liz)
xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(pl)
dp.close()
评论列表
文章目录