Kodi Community Forum
lock/unlock media source - 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: lock/unlock media source (/showthread.php?tid=348807)



lock/unlock media source - leas - 2019-10-29

Is there any way to lock/unlock a media source via a python/json/builtin/... API call? I have searched in the API doc for something useful into that direction but couldn't find anything.

What I ultimately want to achieve is getting rid of my profiles (normal/kids/anime) and manage media through sources which get locked/unlocked in dependance of what I want to have visible and what not. What I'm missing now is e.g. a self-written addon to select different views which will just lock/unlock media sources and reload the skin.

I hope there is an public API available to lock/unlock media sources?