def playvideo(name,url,iconimage,description):
r='"mp4".+?".+?"url":"(.+?)"}'
link=OPEN_URL(url)
match=re.compile(r).findall(link)
amount = len(match)-1
URL=match[amount]
print URL
liz=xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
liz.setInfo( type="Video", infoLabels={ "Title": name,"Plot":description} )
liz.setProperty("IsPlayable","true")
liz.setPath(URL)
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, liz)
评论列表
文章目录