When should isFolder be False for xbmcplugin.addDirectoryItem
#1
First, apologies if this has already been explained but I did google around and didn't really come up with anything...

IDK if its always been this way and I just never noticed, but lately (Leia builds) I've noticed that I get a lot of log lines like this:

Code:
20:39:44.434 T:6712 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://...

if I say isFolder is False when adding a directory item. I do this when I intend to use xbmc.Player().play(...) for that item. For example: https://github.com/micahg/plugin.video.c...ult.py#L18.

Should I always just say isFolder is True unless I'm _actually_ adding a playable URL/file?
Reply
#2
a plugin is a virtual filesystem. IsFolder = true for anything providing a subfolder / listing. False for actions and false + property IsPlayable for final url resolvement.
Reply
#3
Thanks for the response.

Just to close the loop in case anyone else views this thread, what was causing my issue was that my infoLabels did not have 'video' as their 'mediatype' (it was missing).
Reply

Logout Mark Read Team Forum Stats Members Help
When should isFolder be False for xbmcplugin.addDirectoryItem0