2012-04-23, 20:28
my addon creates a directory listing, and i want to show some extra info. like this:
but label2 only shows up when i add a sort method.
is there a way to show label2 without defining a sort method?
Code:
handle = int(sys.argv[1])
for i in range(15):
listitem = xbmcgui.ListItem( label="Label %s" % i , label2="Info %s" % i)
xbmcplugin.addDirectoryItem( handle=handle, url="", listitem=listitem, isFolder=False )
xbmcplugin.addSortMethod( handle=handle, sortMethod=xbmcplugin.SORT_METHOD_NONE )
xbmcplugin.endOfDirectory( handle=handle, succeeded=True )
but label2 only shows up when i add a sort method.
Code:
handle = int(sys.argv[1])
for i in range(15):
listitem = xbmcgui.ListItem(label="Label %s" % i , label2="Info %s" % i)
listitem.setInfo( type="video", infoLabels={"Title":"Label %s" % i,"Genre":"Info %s" % i} )
xbmcplugin.addDirectoryItem( handle=handle, url="", listitem=listitem, isFolder=False )
xbmcplugin.addSortMethod( handle=handle, sortMethod=xbmcplugin.SORT_METHOD_GENRE )
xbmcplugin.endOfDirectory( handle=handle, succeeded=True )
is there a way to show label2 without defining a sort method?