2015-02-10, 22:53
Ok, as mentioned today in the Bugs and Suggestions Thread (see here: 1922495 (post)) Bello doesn't support international adult rating logos but the ones for USA. I personally don't need them because I'm not from the states but instead I'd love to have the ones for my country.
Here's a how for international adult rating logos / symbols support (from Germany, Brazil, UK and more). I took the code and the images from Aeon Nox Skin because there it's supported for quite some time now. Please let me know if I should remove the files and code. Also it would be great (and a big improvement for Bello) if Nessus can add that feature to the next Bello release.
But now let's come to the coding stuff.
If you want you can now remove the <mpaa>-Tag information that is underneath the whole Video Information (because now it's useless):
Here's a how for international adult rating logos / symbols support (from Germany, Brazil, UK and more). I took the code and the images from Aeon Nox Skin because there it's supported for quite some time now. Please let me know if I should remove the files and code. Also it would be great (and a big improvement for Bello) if Nessus can add that feature to the next Bello release.
But now let's come to the coding stuff.
- Open includeFlags.xml with your favourite text editor (like notepad++). For Windows Users you'll find the file within %APPDATA%\Roaming\Kodi\addons\skin.bello\720p\.
Go to line 4 (until 8). They look like:
Replace them with the following code and save the file:Code:<value condition="substring(ListItem.MPAA,Rated G) | substring(ListItem.MPAA,USA:G)">flags/mpaa/film/rating-g.png</value>
<value condition="[substring(ListItem.MPAA,Rated PG) + !substring(ListItem.MPAA,13)] | substring(ListItem.MPAA,USA:PG)">flags/mpaa/film/rating-pg.png</value>
<value condition="[substring(ListItem.MPAA,PG-13) | substring(ListItem.MPAA,USA:PG-13)] + [!substring(ListItem.MPAA,USA:R) + !substring(ListItem.MPAA,rated R)]">flags/mpaa/film/rating-pg13.png</value>
<value condition="substring(ListItem.MPAA,Rated R) | substring(ListItem.MPAA,USA:R)">flags/mpaa/film/rating-r.png</value>
<value condition="substring(ListItem.MPAA, NC-17) | substring(ListItem.MPAA,USA:NC-17)">flags/mpaa/film/rating-nc17.png</value>
Code:<value condition="substring(ListItem.MPAA,Rated G) | substring(ListItem.MPAA,USA:G)">flags/mpaa/rating-g.png</value>
<value condition="[substring(ListItem.MPAA,Rated PG) + !substring(ListItem.MPAA,13)] | substring(ListItem.MPAA,USA:PG)">flags/mpaa/rating-pg.png</value>
<value condition="[substring(ListItem.MPAA,PG-13) | substring(ListItem.MPAA,USA:PG-13)] + [!substring(ListItem.MPAA,USA:R) + !substring(ListItem.MPAA,rated R)]">flags/mpaa/rating-pg13.png</value>
<value condition="substring(ListItem.MPAA,Rated R) | substring(ListItem.MPAA,USA:R)">flags/mpaa/rating-r.png</value>
<value condition="substring(ListItem.MPAA, NC-17) | substring(ListItem.MPAA,USA:NC-17)">flags/mpaa/rating-nc17.png</value>
<value condition="substring(ListItem.MPAA, TV-14) | substring(ListItem.MPAA,USA:TV-14)">flags/mpaa/tv-14.png</value>
<value condition="substring(ListItem.MPAA, TV-G) | substring(ListItem.MPAA,USA:TV-G)">flags/mpaa/tv-g.png</value>
<value condition="substring(ListItem.MPAA, TV-MA) | substring(ListItem.MPAA,USA:TV-MA)">flags/mpaa/tv-ma.png</value>
<value condition="substring(ListItem.MPAA, TV-NA) | substring(ListItem.MPAA,USA:TV-NA)">flags/mpaa/tv-na.png</value>
<value condition="substring(ListItem.MPAA, TV-PG) | substring(ListItem.MPAA,USA:TV-PG)">flags/mpaa/tv-pg.png</value>
<value condition="substring(ListItem.MPAA, TV-Y) | substring(ListItem.MPAA,USA:TV-Y)">flags/mpaa/tv-y.png</value>
<value condition="substring(ListItem.MPAA, TV-Y7) | substring(ListItem.MPAA,USA:TV-Y7)">flags/mpaa/tv-y7.png</value>
<value condition="SubString(ListItem.MPAA,UK:U)">flags/mpaa/BBFC_U_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,UK:PG)">flags/mpaa/BBFC_PG_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,UK:12A)">flags/mpaa/BBFC_12A_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,UK:12)">flags/mpaa/BBFC_12_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,UK:15)">flags/mpaa/BBFC_15_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,UK:18)">flags/mpaa/BBFC_18_Certificate_UK.png</value>
<value condition="SubString(ListItem.MPAA,Germany:16) | SubString(ListItem.MPAA,ab 16) | StringCompare(ListItem.MPAA,16) | Substring(ListItem.MPAA,FSK 16) | SubString(ListItem.MPAA,Rated 16)">flags/mpaa/FSK-16.png</value>
<value condition="SubString(ListItem.MPAA,Germany:6)| SubString(ListItem.MPAA,ab 6) | StringCompare(ListItem.MPAA,6) | Substring(ListItem.MPAA,FSK 16) | SubString(ListItem.MPAA,Rated 6)">flags/mpaa/FSK-6.png</value>
<value condition="SubString(ListItem.MPAA,Germany:12) | SubString(ListItem.MPAA,ab 12) | StringCompare(ListItem.MPAA,12) | Substring(ListItem.MPAA,FSK 12) | SubString(ListItem.MPAA,Rated 12)">flags/mpaa/FSK-12.png</value>
<value condition="SubString(ListItem.MPAA,Germany:18) | SubString(ListItem.MPAA,ab 18) | StringCompare(ListItem.MPAA,18) | Substring(ListItem.MPAA,FSK 18) | SubString(ListItem.MPAA,Rated 18)">flags/mpaa/FSK-18.png</value>
<value condition="SubString(ListItem.MPAA,Germany)|SubString(ListItem.MPAA,FSK)| SubString(ListItem.MPAA,o.A)| SubString(ListItem.MPAA,Rated 0)">flags/mpaa/FSK-0.png</value>
<value condition="SubString(ListItem.MPAA,besorolás alatt)">flags/mpaa/HU_BA.png</value>
<value condition="SubString(ListItem.MPAA,korhatárra való tekintett nélkül megtekintetheto)">flags/mpaa/HU_KN.png</value>
<value condition="SubString(ListItem.MPAA,12 éven aluliak számára a megtekintése nagykorú felügyelete mellett ajánlott)">flags/mpaa/HU_12.png</value>
<value condition="SubString(ListItem.MPAA,16 éven aluliak számára nem ajánlott)">flags/mpaa/HU_16.png</value>
<value condition="SubString(ListItem.MPAA,18 éven aluliak számára nem ajánlott)">flags/mpaa/HU_18.png</value>
<value condition="substring(ListItem.MPAA,France:U) | Substring(ListItem.MPAA,partir de 3 ans) | Substring(ListItem.MPAA,partir de 6 ans)">flags/mpaa/csaU.png</value>
<value condition="substring(ListItem.MPAA,France:-10) | Substring(ListItem.MPAA,Interdit aux moins de 10 ans) | Substring(ListItem.MPAA,des propos ou des images peuvent heurter)">flags/mpaa/csa10.png</value>
<value condition="substring(ListItem.MPAA,France:-12) | Substring(ListItem.MPAA,Interdit aux moins de 12 ans)">flags/mpaa/csa12.png</value>
<value condition="substring(ListItem.MPAA,France:-16) | Substring(ListItem.MPAA,Interdit aux moins de 16 ans)">flags/mpaa/csa16.png</value>
<value condition="substring(ListItem.MPAA,France:-18) | Substring(ListItem.MPAA,Interdit aux moins de 18 ans)">flags/mpaa/csa18.png</value>
<value condition="substring(ListItem.MPAA,전체)">flags/mpaa/KR_Certificate_All.png</value>
<value condition="substring(ListItem.MPAA,12세)">flags/mpaa/KR_Certificate_12.png</value>
<value condition="substring(ListItem.MPAA,15세)">flags/mpaa/KR_Certificate_15.png</value>
<value condition="substring(ListItem.MPAA,불가)">flags/mpaa/KR_Certificate_18.png</value>
<value condition="substring(ListItem.MPAA,제한)">flags/mpaa/KR_Certificate_R.png</value>
<value condition="substring(ListItem.MPAA,Brazil:Livre) | substring(ListItem.MPAA,Livre)">flags/mpaa/MPAA_Brazil_Livre.png</value>
<value condition="substring(ListItem.MPAA,Brazil:10) | substring(ListItem.MPAA,10 anos)">flags/mpaa/MPAA_Brazil_10.png</value>
<value condition="substring(ListItem.MPAA,Brazil:12) | substring(ListItem.MPAA,12 anos)">flags/mpaa/MPAA_Brazil_12.png</value>
<value condition="substring(ListItem.MPAA,Brazil:14) | substring(ListItem.MPAA,14 anos)">flags/mpaa/MPAA_Brazil_14.png</value>
<value condition="substring(ListItem.MPAA,Brazil:16) | substring(ListItem.MPAA,16 anos)">flags/mpaa/MPAA_Brazil_16.png</value>
<value condition="substring(ListItem.MPAA,Brazil:18) | substring(ListItem.MPAA,18 anos)">flags/mpaa/MPAA_Brazil_18.png</value>
<value condition="substring(ListItem.MPAA,Australia:)">$INFO[ListItem.MPAA,flags/mpaa/australia_,.png]</value>
- Open DialogVideoInfo.xml with your favourite text editor (like notepad++). For Windows Users you'll find the file within %APPDATA%\Roaming\Kodi\addons\skin.bello\720p\.
Go to line 77. It looks like:
Replace it with the following code and save the file:Code:<texture fallback="flags/mpaa/tv/tv-na.png">$INFO[ListItem.mpaa,flags/mpaa/tv/,.png]</texture>
Code:<texture fallback="flags/mpaa/tv/tv-na.png">$VAR[MPAAFilmRating]</texture>
- Now go to %APPDATA%\Roaming\Kodi\addons\skin.bello\media\flags\mpaa\ and unzip here the archive that I attached with the new images (again the images come from Aeon Nox Skin and should be something like a temp. fix - maybe Nessus can add images that fit better to the Bello design).
http://www.htpc-customs.com/misc/xbmc/me...-flags.zip
If you want you can now remove the <mpaa>-Tag information that is underneath the whole Video Information (because now it's useless):
- Open DialogVideoInfo.xml with your favourite text editor (like notepad++). For Windows Users you'll find the file within %APPDATA%\Roaming\Kodi\addons\skin.bello\720p\.
Go to lines 456 until 483. They look like:
Delete the code and save the file.Code:<control type="label">
<description>Rated</description>
<posx>0</posx>
<posy>410</posy>
<width>850</width>
<height>30</height>
<font>FontSize_22</font>
<label>$INFO[ListItem.MPAA,* ]</label>
<align>left</align>
<aligny>center</aligny>
<textcolor>white</textcolor>
<shadowcolor>99000000</shadowcolor>
<visible>Container.Content(Movies)</visible>
</control>
<control type="label">
<description>Rated</description>
<posx>0</posx>
<posy>410</posy>
<width>850</width>
<height>30</height>
<font>FontSize_22</font>
<label>$INFO[ListItem.MPAA,* $LOCALIZE[20074]: ]</label>
<align>left</align>
<aligny>center</aligny>
<textcolor>white</textcolor>
<shadowcolor>99000000</shadowcolor>
<visible>!Container.Content(Movies)</visible>
</control>