Kodi Community Forum
What is the 'isFolder' params in 'addDirectoryItem' ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: What is the 'isFolder' params in 'addDirectoryItem' ? (/showthread.php?tid=163380)



What is the 'isFolder' params in 'addDirectoryItem' ? - realtebo - 2013-04-26

Code:
addDirectoryItem(handle, url, listitem [,isFolder, totalItems])

I tried to build a list with isFolder = True and with isFolder = false and cannot see any differences .. (Froyo on Linux Mint 14)

What was supposed to do ?


RE: What is the 'isFolder' params in 'addDirectoryItem' ? - Bstrdsmkr - 2013-04-26

Is the action the item points to going to be another list of stuff or an action? If it's a folder, Xbmc will wait and show the working dialog until end of directory is called


RE: What is the 'isFolder' params in 'addDirectoryItem' ? - realtebo - 2013-04-26

Ah, ok ...

I ased because in a addon I've seen a list with 'folder icon' in front of single items, so I'd like to understand how to make this into my addon


RE: What is the 'isFolder' params in 'addDirectoryItem' ? - Bstrdsmkr - 2013-04-27

If you leave the iconImage and thumbnaillImage parameters blank when creating the listitem, it'll default to the skin's standard icons


RE: What is the 'isFolder' params in 'addDirectoryItem' ? - realtebo - 2013-10-03

(2013-04-26, 15:05)Bstrdsmkr Wrote: Is the action the item points to going to be another list of stuff or an action? If it's a folder, Xbmc will wait and show the working dialog until end of directory is called

Repeatly hapens if I remove isFolder=true that I got plugin pid -1, so a lot of errors happen, why ?


RE: What is the 'isFolder' params in 'addDirectoryItem' ? - jmarshall - 2013-10-04

Because XBMC doesn't know what to do with the plugin URL when it's not a folder. The Debug Log will give you a hint of what is happening.