is a plugin installed ?
#1
is there away i can get XBMC to check if a certain plugin is installed for the use for a <visible> tag ?
Reply
#2
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
Reply
#3
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
Reply
#4
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.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
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
Reply
#6
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)
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#7
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)
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#8
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.
Reply
#9
OT: spiff your latest kruft cleanup broke build on win32 dx. the last change to settings.h
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#10
nah, it borked all platforms equally. fixed now
Reply
#11
Now with the addon manager going strong I would also like to know. Is there some way to check wether an addon is installed?
Reply
#12
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.
Reply

Logout Mark Read Team Forum Stats Members Help
is a plugin installed ?0