Kodi Community Forum

Full Version: is a plugin installed ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
is there away i can get XBMC to check if a certain plugin is installed for the use for a <visible> tag ?
nope this goes back to a request ages ago to be able to check for the existance of files and had various technical issues that would hammer the filesystem since <visible> conditions are checked every frame
Jezz_X Wrote:nope this goes back to a request ages ago to be able to check for the existance of files and had various technical issues that would hammer the filesystem since <visible> conditions are checked every frame

ok cheers Jezz
this sounds like a good idea.

what could be done if scripters would support it. I would. is the script/plugin could write a skin setting.

Plugin.Apple Movie Trailers>Path to script/plugin<

this would be inaccurate until the script is run, but could be done from the svn installer or whatever installer team xbmc is working on.

probablt both incase you reset skin settings or changed skins.
Setting Skin strings for global plugins is a bad idea because you would need to set it in every skin you use. This partially a reason I also don't like TWC-Suplimental script because it sets things like
Quote: <setting type="bool" name="MediaStream_Redux.twc-animated">false</setting>
<setting type="bool" name="MediaStream_Redux.twc-metric">false</setting>
<setting type="bool" name="MediaStream_Redux.twc-show-alerts">false</setting>
<setting type="string" name="MediaStream_Redux.twc-mapspath">weather.com/loading</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist1-category">Local</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist2-category">Weather Details (Current Weather)</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist3-category">Outdoor Activity (Business Travel)</setting>
<setting type="string" name="MediaStream_Redux.twc-defaultview">201</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist1-title">Local</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist2-title">Current&#x0A;Weather</setting>
<setting type="string" name="MediaStream_Redux.twc-maplist3-title">Business&#x0A;Travel</setting>
It should be using its own global setting file so its that same on every skin and you don't have to keep resetting it everytime you use new skins
yes agreed, thought i raised that point.

about the script. those settings are fine for the script. if you change skins they are easily accessed. for plugins like the weather.com plus. it uses plugin settings for permanant and properties for temp. which is another reason it's better.

there is an httpapi call that sets global settings. never tried with a non existant setting. did i read somewhere skins can now check global settings? (xbmc settings)
also for the those skin settings. skins could not read script settings so how would the skin know where the downloaded maps were for instance.

most of those are used by the skin itself and are not script set. they add ability for a user to set it up the way they want. nor are they required by the script. so you can stop adding to them.

we can go back and forth, but why. we agree a global setting would be best. skin.GlobalString(nlah,blah)
once we get the addon manager in there, we have a central registry of anything installed. i'm sure we can toss in some hasfoo() vis conds at some point.
OT: spiff your latest kruft cleanup broke build on win32 dx. the last change to settings.h
nah, it borked all platforms equally. fixed now
Now with the addon manager going strong I would also like to know. Is there some way to check wether an addon is installed?
I'd like to do this as well because I'd like to display a message if the Subtitles and/or Lyrics scripts aren't installed.