2019-07-20, 11:02
(2019-07-19, 17:01)sualfred Wrote: So you want the geographical position or what exactly do you want to achieve? Getting the regional setting of Kodi?
Once again sorry sualfred, thought you had been a party to this conversation where I outlined my efforts to bring in MPAA icons for a skin to display in a quick, scalable way. As different locations might have common certification types but different icons, the easiest way to distinguish between the various files in the resource file I created was to include the location (country) of the users computer in the name of each graphics file in the resource file.
The original code I planned to use to display the correct icon was as follows
Code:
<texture>$INFO[ListItem.Mpaa,special://skin/extras/flags/Mpaa/,.png]</texture>
but nothing is ever quite as simple as it first seems, as getting support to include the country name in scrapped MPAA results is proving elusive. If I can pull the users current location into the skin engine (full Country name as it looks better if I should choose to display the text elsewhere in the skin) I can build the correct file name for the appropriate image and as I now have to build the file name from MPAA string and a Country string, could give user the option to use default United States icons instead.
Hope the request makes a little more sense now.
Wyrm