2009-07-09, 07:20
I'm trying to create a list in my test plugin and I cant get listItem to display the desired label. It displays the name of the plugin as my label for all my items, even when I use static label text
My code is as below
Instead of displaying "Test" for listItem label it displays the name of my plugin
Anybody got an idea why?
My code is as below
Code:
li=xbmcgui.ListItem( label='Test')
li.setInfo( type="Video", infoLabels={ "Title": name } )
u=sys.argv[0]+"?mode=3&name="+urllib.quote_plus(name)+"&url="+urllib.quote_plus(URLS[x])
ok = xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url=u, listitem=li, isFolder=False)
Instead of displaying "Test" for listItem label it displays the name of my plugin
Anybody got an idea why?