Folders in lists (plugin)
#1
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? Sad
Reply
#2
for plugins, a folder is basically just another item that calls back to the plugin with different parameters.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
Quote: Like, i have no clue how to make plugin to move in folders.

You have to set a directory item as a folder:
Code:
xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]), url='http://video.google.com', listitem=li, [b]isFolder=True[/b], 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:
Code:
import xbmcgui,sys
xbmcgui.Dialog().ok('sys.argv[2]:',sys.argv[2])
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#4
Actually i got it now after Nuka's reply.. Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Folders in lists (plugin)0