[Solved] Subfolders in Custom Addon - 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: [Solved] Subfolders in Custom Addon (/showthread.php?tid=225988) |
[Solved] Subfolders in Custom Addon - Naito333 - 2015-05-03 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. RE: Subfolders in Custom Addon - Naito333 - 2015-05-04 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.audio.nectarine/blob/master/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': |