-
-
Notifications
You must be signed in to change notification settings - Fork 15
Script: Change global Kodi settings
Changing global settings affects all skins! You never should do this without the users permssions or without letting the user know!
In Embuary I've added a simple YES/NO dialog and I inform the users that I highly recommend to change a list of settings to get the best experience in Embuary. So the user has the option to disagree.
Fonts are a pita for Kodi. For skinners and users. It's nearly impossible to find a font that covers all letters for all languages so most skins are using Arial (or another font) as fallback. But from a Asian user point of view it is bad, because he has to manually change the font set to Arial. Seeing no labels or only garbage symbols makes it more than hard to find the correct button in the skin.
Solution: Automatically do it for the users based on the locale of the operation system!
Required parameters
-
locales=
(eg: ja+hr+ar+he) -
font=
(fallback font)
Example call in startup.xml
<onload condition="!Skin.HasSetting(FontCheck)">RunScript(script.embuary.helper,action=fontchange,locales=ja+zh+ar+he+ko+vi+bn+my+hi+ks+km+ms,font=Arial)</onload>
<onload condition="!Skin.HasSetting(FontCheck)">Skin.ToggleSetting(FontCheck)</onload>
Sets Kodi setting with provided value. For reference please check guisettings.xml
in the Kodi userdata folder.
Example call
RunScript(script.embuary.helper,action=setkodisetting,setting=videolibrary.tvshowsselectfirstunwatcheditem,value=1)
Gets a Kodi setting and stores the value to a window property. For reference please check guisettings.xml
in the Kodi userdata folder.
Example call
RunScript(script.embuary.helper,action=getkodisetting,setting=locale.country)
Result
Window(home).property(locale.country)
= Australia (12h)
Example call with optional time format removal
RunScript(script.embuary.helper,action=getkodisetting,setting=locale.country,strip=timeformat)
Result
Window(home).property(locale.country)
= Australia
Toggles a Kodi setting bool from True to False or reversed. For reference please check guisettings.xml
in the Kodi userdata folder.
Example call
RunScript(script.embuary.helper,action=togglekodisetting,setting=filelists.showparentdiritems)
Offers the option to disable or enable add-ons by skin. It's possible to change it for multiple add-ons at once by splitting them with +
.
Required parameters
-
addonid=
(eg: script.foo.bar) -
enable=
(true or false)
Example call
RunScript(script.embuary.helper,action=toggleaddons,addonid=script.module.metadatautils+script.skin.helper.service,enable=true)
script and wiki created by sualfred
- Go to path
- Play item
- Play SFX sound
- Play all, shuffled, from here
- Play folder
- Play random
- Reset container positions
- Browse TV show of episode
- Get TV show details
- Blur image
- Split value
- Check if file exists
- Update library item
- Get .txt file content
- Get system locale
- Set timer
- Encode/decode string
- Calculate
- Get add-on setting
- Image dimension and aspect ratio
- Attention & warning
- Auto font change
- Set Kodi setting
- Get Kodi setting
- Toggle Kodi setting
- Disable/enable add-ons
- The background service
- Restarting the service
- Global background images
- Auto playlist clearing
- Auto refresh widgets
- Player audio track detection
- Player audio and subtitle info labels
- Channel logo of playing recording
- Artist and album artworks for music playback
- Auto fullscreen on playback
- Next item of video playlist
- Player artwork dimension and aspect ratio
- Player icon blurring
- Detect / populate library tags
- In progress media
- Media by random genre
- Get more items of random actor
- Get more items by given actor
- In progress movies
- Suggestions based on watched movies
- Similar movies based on movie
- Movies by random genre
- Movie genres
- Directed by