default.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:catchup4kodi 作者: catchup4kodi 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号