Kodi Community Forum
Disable "parent folder" by code - 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: Disable "parent folder" by code (/showthread.php?tid=347201)



Disable "parent folder" by code - Oliver Fleischkopper - 2019-09-12

just another question

is it possible to disable the "parent folder link" by code instead of disable it in the kodi settings?

greetings


RE: Disable "parent folder" by code - Klojum - 2019-09-12

If there is a setting for it, then there is code available too.
What are you looking for?


RE: Disable "parent folder" by code - Oliver Fleischkopper - 2019-09-13

(2019-09-12, 20:26)Klojum Wrote: If there is a setting for it, then there is code available too.
What are you looking for?

The Setting isĀ Settings > Appearance > File ListsĀ > Show Parent Folder Items .


RE: Disable "parent folder" by code - vitorp07 - 2019-09-13

@Oliver Fleischkopper
This should do it,
python:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Settings.SetSettingValue","id":1,"params":{"setting":"filelists.showparentdiritems","value":false}}')