2017-02-12, 04:56
Is there a way to disable all Seasons, and all albums? Hoping I over looked it somewhere..
RunScript(script.skin.helper.service,action=togglekodisetting,setting=videolibrary.showallitems)
RunScript(script.skin.helper.service,action=togglekodisetting,setting=musiclibrary.showallitems)
<onload condition="System.GetBool(videolibrary.showallitems)">RunScript(script.skin.helper.service,action=togglekodisetting,setting=videolibrary.showallitems)</onload>
<onload condition="System.GetBool(musiclibrary.showallitems)">RunScript(script.skin.helper.service,action=togglekodisetting,setting=musiclibrary.showallitems)</onload>
(2017-02-12, 08:41)sualfred Wrote: That's a toggle action. You cannot use a value there. Just use the System.GetBool function to get the required condition (returns true if set).IMO this is something that scripts just should not be allowed to do. Too many opportunities for abuse and users won't know what is causing their settings to change.
Correct code
Code:<onload condition="System.GetBool(videolibrary.showallitems)">RunScript(script.skin.helper.service,action=togglekodisetting,setting=videolibrary.showallitems)</onload>
<onload condition="System.GetBool(musiclibrary.showallitems)">RunScript(script.skin.helper.service,action=togglekodisetting,setting=musiclibrary.showallitems)</onload>
Edit:
You have to keep in mind that this setting is set globally and will be disabled on other skins, too. A lot of users don't like it to play with settings, which aren't skin related. The best option is to ask the users to disable that items (skin settings or implement a custom startup routine).