Couple addon visiblity questions
#1
1. Is there anyway I can automatically detect if a addon is installed. I really dont like having users have to check on/off a bunch of settings. I guess I could put <visibles> like the in the question below...

2. Whats the correct visibility for AMT lite, this was the pre-merge way:

Quote:substring(container.folderpath,plugin://video/Apple Movie)

thx...
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#2
plugin://plugin.apple.video.trailers.lite/

currently no way to do 1), makes sense to add though.
Reply
#3
system.hasaddon(id) added in r32499.
Reply
#4
Very cool and very fast thx!

That means I'll be able to get rid of skin settings enable buttons for:

subtitles
Home Theater (when ready)
Lyrics
maybe 1 or 2 more
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#5
One thing to consider is there may be more than one subtitle or lyrics script(s). Thus the reason it's done the way it is.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
I havent tried the new addition but, system.hasaddon(id), wouldn't that "id" be unique and not cause any conflicts?
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#7
Sure - I'm just saying that it might not be best to eliminate the choosing of the subtitle or lyrics scripts in your skin. It could perhaps be an optional thing though (i.e. default to xbmc.subtitles and xbmc.lyrics if they're there and then have a chooser in skin settings in case someone has another one they want to use).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#8
This works:
Quote:<visible>system.hasaddon(script.logo-downloader)</visible>


But this doesn't:
Quote:<visible>Container.Content(tvshows) + system.hasaddon(script.logo-downloader)</visible>


**Edit**

Actually I was having trouble in general, this seems not to detect whether it's installed or not. It's returning true, or being ignored:
Quote:<visible>system.hasaddon(script.xbmc.subtitles)</visible>
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply
#9
Alright tried again, just want to 2x:

It seems to work only if addon is installed via addon manager correct? Thats how it's detecting whether or not something hasaddon

Like this works:
Quote:<control type="radiobutton" id="513">
<include>skin_settings_labels</include>
<label>Use TV Themes in Library</label>
<onclick>Skin.ToggleSetting(tv_theme)</onclick>
<selected>Skin.HasSetting(tv_theme)</selected>
<visible>system.hasaddon(plugin.video.fox.news)</visible>
</control>

And if I uninstall the addon via addon repo then the setting disappears like expected. So far this doesn't work:
Quote:<control type="radiobutton" id="513">
<include>skin_settings_labels</include>
<label>Use TV Themes in Library</label>
<onclick>Skin.ToggleSetting(tv_theme)</onclick>
<selected>Skin.HasSetting(tv_theme)</selected>
<visible>system.hasaddon(script.TvTunes)</visible>
</control>

That is because I manually installed it, since the addon is not in repo yet, correct?
Image

Check out The Carmichael - A Skin For XBMC

Check out Night - A Skin For XBMC

Check out Unfinished - A Skin For XBMC
Reply

Logout Mark Read Team Forum Stats Members Help
Couple addon visiblity questions0