Get user country or region?
#1
So I know I can get users language with xbmc.geLanguage is there a way to get the users country and or region? Is that even something that gets set in Kodi?
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply
#2
you can use JSON-RPC https://kodi.wiki/view/JSON-RPC_API/v8#S...ttingValue to get the locale.timezone or locale.timezonecountry setting, but this is not guaranteed to be set in every platform/install.
Reply
#3
(2019-05-09, 07:38)V8MEM Wrote: you can use JSON-RPC https://kodi.wiki/view/JSON-RPC_API/v8#S...ttingValue to get the locale.timezone or locale.timezonecountry setting, but this is not guaranteed to be set in every platform/install.

Thanks I will give it a try. If it is not set then I will just have it fallback to the USA so no big deal.
Shield TV | Windows 10 | Mariadb | Mii Box
Evolve Ecosystem Repo | TV Melodies | Madnox Holiday Mod
Reply

Logout Mark Read Team Forum Stats Members Help
Get user country or region?0