def addFreeLink(name,link_url,iconimage,fanart=None,scrape_type=None,info=None):
params = get_params()
ok=True
u=sys.argv[0]+"?url="+urllib.quote_plus(link_url)+"&mode=6&icon_image="+urllib.quote_plus(iconimage)
liz=xbmcgui.ListItem(name, iconImage=ICON, thumbnailImage=iconimage)
liz.setProperty("IsPlayable", "true")
liz.setInfo( type="Video", infoLabels={ "Title": name } )
if info != None:
liz.setInfo( type="Video", infoLabels=info)
liz.setProperty('fanart_image', fanart)
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz)
xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
return ok
globals.py 文件源码
python
阅读 31
收藏 0
点赞 0
评论 0
评论列表
文章目录