2022-01-21, 22:27
(2022-01-21, 20:06)latts9923 Wrote: If I try to display the first country (United States) as an image it fails to display...Just try to show image for country....
working, ..... but not always.problem is in Kodi cache.
Same "stripstring" United States sometimess show sometimes not.
in DialogVideoInfo.xml
Code:
<onload condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service,action=stripstring,splitchar= /,string=$INFO[Window(Home).Property(SkinHelper.ListItem.Country)],output=countryflag,index=0)</onload>
<onunload>ClearProperty(countryflag,Home)</onunload>
Code:
<texture>$VAR[value_countryflag]</texture>
Code:
<variable name="value_countryflag">
<value condition="!String.IsEmpty(Window(Home).Property(countryflag))">$INFO[Window(Home).Property(countryflag),resource://resource.images.moviecountryicons.flags/,.png]</value>
</variable>