[Solved] Subfolders in Custom Addon
#1
I have a simple question regarding subfolders in my addon. I searched through google and other addons, but everything was far beyond what I am currently looking for.

How can I get my list items to appear in separate subfolders. Example below:

First Folder
-List Item
-List Item
-List Item
Second Folder
-List Item
-List Item
-List Item

Right now everything appears no matter what folder I am in. Any help would be greatly appreciated.

Update:
Link removed due to answer being found.
Reply
#2
I found the answer.

Originally I got my information from http://kodi.wiki/view/Audio-video_add-on_tutorial.
I found the answer from https://github.com/vidarw/xbmc.plugin.au...default.py

The add-on tutorial didn't specify to declare the name variable (name = args.get('foldername', None). In the if statements you need to use:

if mode is None and name is None:

elif mode[0] == 'folder' and name[0] == 'foldernamegoeshere':
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] Subfolders in Custom Addon0