2015-01-29, 01:21
Hi!
If I create a directory item using "addDirectoryItem(handle, url, listitem, isFolder=False)", is it possible to afterwards make it become a folder (i. e. set isFolder to True)?
I have an addon which lists movies and tv shows in the same directory. So I want to have the directory contain both links and folders. The problem is that there's no way to know beforehand if the item is a show or a movie - so in the creation all items will be set as links. Therefore, when clicking an item, if it turns out to be a tv show, I would like to be able to set it as a folder in order to create a new directory with the episodes.
The question is, is it possible?
Thanks!
If I create a directory item using "addDirectoryItem(handle, url, listitem, isFolder=False)", is it possible to afterwards make it become a folder (i. e. set isFolder to True)?
I have an addon which lists movies and tv shows in the same directory. So I want to have the directory contain both links and folders. The problem is that there's no way to know beforehand if the item is a show or a movie - so in the creation all items will be set as links. Therefore, when clicking an item, if it turns out to be a tv show, I would like to be able to set it as a folder in order to create a new directory with the episodes.
The question is, is it possible?
Thanks!