How to test if plugin is installed
#1
I have a plugin that may (rarely) be forced to use a youtube or vimeo link to play a video.

How can I test whether these plugins are actually installed?
Or, is the only safe way to handle this by requiring them in addon.xml.

Thanks for your help!
Reply
#2
you could use this to check if an addon is installed:
Code:
xbmc.getCondVisibility('System.HasAddon(pugin.video.youtube)')
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
You don't need to require them via addon.xml. Just return it's playable URL and XBMC will ask the user if the add-on should be installed.
My GitHub. My Add-ons:
Image
Reply
#4
(2013-03-11, 08:20)sphere Wrote: You don't need to require them via addon.xml. Just return it's playable URL and XBMC will ask the user if the add-on should be installed.
Wow that is splendid!
Thanks everyone for the quick replies Smile
Reply

Logout Mark Read Team Forum Stats Members Help
How to test if plugin is installed0