Is there any way to show the country of origin of the movie in Media flags. Even if there is multiple country in a movie, i just want the first one to show in media flags. The kodi database shows country for movie Nine as Germany / Canada / United States of America. I just want Germany to show. Any help will be appreciated.
If possible i want the country flag to show with name. I can see Kodi has all the country flag at the below location
https://github.com/lipis/flag-icon-css
That's not built-in. It's an addon.
http://kodi.wiki/view/Add-on:Movie_Count...ns_-_Flags
Even if you've installed it it doesn't seem you can't easily reference the flags using $INFO[VideoPlayer.Country]
You'd have to match the output of VideoPlayer.Country to the correct flag.
Where do you see multiple countries? I only see one country for movies. VideoPlayer.Country also only returns one country.
I am using below in variable.xml and added all the flag files to the texture.xbt file using kodi texture file.
<variable name="CountryVar">
<value>$INFO[ListItem.Country,countryflag/,.png]</value>
</variable>
Include.xml will have below added on line 406.
<include content="MediaFlag">
<param name="texture" value="$VAR[CountryVar]" />
<param name="visible" value="!String.IsEmpty(ListItem.Country)" />
</include>
Make sure countryflag.png file is exact name of country. My issue is if there is multiple country.. it doesnt work.
I wanted to strip the string so that first country is shoen. Any help will be appreciated.