View Full Version : Folders in lists (plugin)
Im kinda newbie in coding XBMC plugins/scripts so im curious to know, how can i make folders useful? Like, i have no clue how to make plugin to move in folders. I've tried to look other plugins like DemosceneTV plugin but it's all useless to me. Can someone explain, please? :(
Nuka1195
2008-10-04, 00:42
for plugins, a folder is basically just another item that calls back to the plugin with different parameters.
rwparris2
2008-10-04, 08:47
Like, i have no clue how to make plugin to move in folders.
You have to set a directory item as a folder:
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url='http://video.google.com', listitem=li, isFolder=True, totalItems=3)
Is that what you're asking?
Like nuka said folders just start the plugin over with new parameters (which are available in sys.argv[]
To experiment, try sticking this code at the beginning of a plugin so you can see what is happening with the parameters and when:
import xbmcgui,sys
xbmcgui.Dialog().ok('sys.argv[2]:',sys.argv[2])
Actually i got it now after Nuka's reply.. Thanks.