2010-03-27, 23:05
I know that there is probably a simple answer to this, but I can't figure it out.
I'm trying to create a list like the SVN Repo installer creates: i.e.
[Item Status]
Looking at the code of SVN Repo Installer, I came up with this:
I'm trying to create a list like the SVN Repo installer creates: i.e.
[Item Status]
Looking at the code of SVN Repo Installer, I came up with this:
Code:
import xbmc
import xbmcplugin
import xbmcgui
liz=xbmcgui.ListItem('My Name', 'Label 2',
iconImage = "DefaultFolder.png",
thumbnailImage = 'DefaultFolder.png')
liz.setInfo( type="Video", infoLabels={"Title": "My Name", "Genre": "label 2"} )
ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),
url='xxx',
listitem=liz,
isFolder=False)
xbmcplugin.endOfDirectory(int(sys.argv[1]))
But all I get is:
[My Name ]
How do I get the Label2 text to show?
Thanks!
Brian