Kodi Community Forum
Check for installed addons?? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Check for installed addons?? (/showthread.php?tid=81171)



Check for installed addons?? - Crookas - 2010-09-15

Hi all

Is there a way to check if an addon is installed or not?

For example, in my musicOSD.xml I have a button which calls the lyrics script:

<onclick>XBMC.RunScript(script.cu.lyrics)</onclick>

All good if the addon is installed but if it isn't I get nothing except an error in the logs.

Is it possibe to check for the addon and if it isn't installed then let the user know that they need to install it for that feature to work?

Regards,

Crookas
PS apologies if this has been covered before.


- Montellese - 2010-09-15

Maybe what you are looking for has already been requested and introduced in this thread: http://forum.xbmc.org/showthread.php?tid=78363


- Hitcher - 2010-09-15

Or just add it to the required section of your addon.xml.


- Crookas - 2010-09-15

Montellese Wrote:Maybe what you are looking for has already been requested and introduced in this thread: http://forum.xbmc.org/showthread.php?tid=78363

Hitcher Wrote:Or just add it to the required section of your addon.xml.

Thanks chaps, all I need to know.