default.py 文件源码

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

项目:catchup4kodi 作者: catchup4kodi 项目源码 文件源码
def TG4_PLAY_LINK(name,url,iconimage):
    vid=url
    pubid=iconimage.split('pubId=')[1]
    stream_url='http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=%s&pubId=%s'% (vid,pubid)
    liz = xbmcgui.ListItem(name, iconImage='DefaultVideo.png', thumbnailImage=iconimage)
    liz.setInfo(type='Video', infoLabels={'Title':name})
    liz.setProperty("IsPlayable","true")
    liz.setPath(stream_url)
    xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, liz)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号