2013-08-01, 05:49
Hey there,
I'm currently developing an addon in which I use the same function to listitems (movies or tvshows). The only parameter that differs on the function call for movies and tvshows is the "isFolder" bool (respectively False for movies and True for tvshows). The function is below:
pasta=False for movies and pasta=True for tvshows. Despite having the same "type" of InfoLabels, they are not showing up in the default fannart view. Check the screenshots below (for a movie and tvshow):
I would like to do it this way if possible...
Any ideas?
Thanks in advance
I'm currently developing an addon in which I use the same function to listitems (movies or tvshows). The only parameter that differs on the function call for movies and tvshows is the "isFolder" bool (respectively False for movies and True for tvshows). The function is below:
Code:
def addDir_filme(name,url,mode,iconimage,infolabels,fannart,totalit,pasta):
u=sys.argv[0]+"?url="+urllib.quote_plus(url)+"&mode="+str(mode)+"&name="+urllib.quote_plus(name)+"&iconimage="+urllib.quote_plus(iconimage)
ok=True
contextmen = []
contextmen.append(('info filme', 'XBMC.Action(Info)'))
contextmen.append(('Comentar', 'XBMC.RunPlugin(%s?mode=7&name=%s&url=%s&iconimage=%s)' % (sys.argv[0], name, url, iconimage)))
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
liz.setProperty('fanart_image', fannart)
liz.setInfo( type="Video", infoLabels=infolabels)
liz.addContextMenuItems(contextmen, replaceItems=True)
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=pasta,totalItems=totalit)
return ok
pasta=False for movies and pasta=True for tvshows. Despite having the same "type" of InfoLabels, they are not showing up in the default fannart view. Check the screenshots below (for a movie and tvshow):
I would like to do it this way if possible...
Any ideas?
Thanks in advance