2019-07-19, 16:28
@sualfred,
Yes, I would like System locale, in full form by preference, but short form codes like above if that is all is provided. My understanding was that the JSON provided full country name with (12h) or (24h) to denote if 12 or 24 hour clock used. So for my country it would return Australia(12h). In this case I would want the (12h) stripped off of the string and just the Australia returned.
Will check to make sure but pretty sure this only checks if addon is installed. Will return true if addon installed but disabled... Yep, just checked my code. Unless behaviour has changed for Matrix, System.HasAddon only checks if installed, not if addon is enabled/disabled.
Wyrm
(2019-07-19, 11:07)sualfred Wrote: @wyrm
Locales: So you want the system locale? Like DE, EN, etc? Or what exactly do you mean?
Yes, I would like System locale, in full form by preference, but short form codes like above if that is all is provided. My understanding was that the JSON provided full country name with (12h) or (24h) to denote if 12 or 24 hour clock used. So for my country it would return Australia(12h). In this case I would want the (12h) stripped off of the string and just the Australia returned.
Quote:Addon is enabled: Is already available as builtin by Kodi -> System.HasAddon(script.foo.bar). This only returns true if installed and enabled.
Will check to make sure but pretty sure this only checks if addon is installed. Will return true if addon installed but disabled... Yep, just checked my code. Unless behaviour has changed for Matrix, System.HasAddon only checks if installed, not if addon is enabled/disabled.
Wyrm