Addon with Multiple content types
#1
Hi,

Im creating an addon that has both images and videos.

How do I set the content type for the directory. Currently my images are trying to open as a video file, which is wrong obviosuly.

Ive tried to use item.setInfo(type='image'.....

But this doesnt seem to work

Thanks
Reply
#2
Just to expand a little,

Ive got two top level folders, one for video and one for images.

As this is a video plugin the directory listing for both are Videos

Is there anyway to programatically switch the conten type to images when entering the images folder?

Thanks
Reply
#3
Hello

I think it's possible by entering multiple extensions in addon.xml.

<extension library="service.py" point="xbmc.service" start="login"/>
<extension library="addon.py" point="xbmc.python.script"/>

As you see you could enter different types with different python scripts.
Reply
#4
Hi,

you have to use:
PHP Code:
xbmcplugin.setContent(handle_id'files'


See here: http://mirrors.xbmc.org/docs/python-docs...setContent
My GitHub. My Add-ons:
Image
Reply

Logout Mark Read Team Forum Stats Members Help
Addon with Multiple content types0