2010-08-23, 09:20
hi team,
fyi if you need to display Australian MPAA info.
Before you start make sure your movies have the .nfo file with the AU MPAA details set.
1. You will need a list of AU MPAA ratings icons.
These can be found at http://www.classification.gov.au/ or as I did copy them from ember MM install directory.
2. Under xbmc/skin/conflience/media create a directory called 'flagging'.
Place all of the MPAA icons under 'flagging/ratings' (another sub directory.
The path to the MPAA icons will look like this:
xbmc/skin/conflience/media/flagging/ratings
3. Backup the file: xbmc/skin/confluence/720p/IncludesCodecFlagging.xml
4. Finally update the file: xbmc/skin/confluence/720p/IncludesCodecFlagging.xml
Update the following lines (arround line 86) to read as follows:
<include name="VideoMPAAFlaggingConditions">
<control type="image">
<description>Rated G</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_g.png</texture>
<visible>substring(listitem.mpaa,Australia:G)</visible>
</control>
<control type="image">
<description>Rated PG</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_pg.png</texture>
<visible>substring(listitem.mpaa,AustraliaG) + !substring(listitem.mpaa,AustraliaG-13)</visible>
</control>
<control type="image">
<description>Rated M</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_m.png</texture>
<visible>substring(Listitem.mpaa,Australia:M)+ !substring(listitem.mpaa,Australia:MA)</visible>
</control>
<control type="image">
<description>Rated MA</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_ma.png</texture>
<visible>substring(Listitem.mpaa,Australia:MA)</visible>
</control>
<control type="image">
<description>Rated R</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_r.png</texture>
<visible>substring(Listitem.mpaa,Australia:R)</visible>
</control>
</include>
On your next restart of xbmc, go to Video Library -> View: Fanart.
This will show the AU ratings flag in the bottom right corner of the Movie info screen just under the plot.
Note, this is a first cut and only shows the MPAA flags when viewing the Fanart.
As I findout more about how this stuff hangs together I will try and post updates.
Hope this helps the AU users.
cheers,
dg
fyi if you need to display Australian MPAA info.
Before you start make sure your movies have the .nfo file with the AU MPAA details set.
1. You will need a list of AU MPAA ratings icons.
These can be found at http://www.classification.gov.au/ or as I did copy them from ember MM install directory.
2. Under xbmc/skin/conflience/media create a directory called 'flagging'.
Place all of the MPAA icons under 'flagging/ratings' (another sub directory.
The path to the MPAA icons will look like this:
xbmc/skin/conflience/media/flagging/ratings
3. Backup the file: xbmc/skin/confluence/720p/IncludesCodecFlagging.xml
4. Finally update the file: xbmc/skin/confluence/720p/IncludesCodecFlagging.xml
Update the following lines (arround line 86) to read as follows:
<include name="VideoMPAAFlaggingConditions">
<control type="image">
<description>Rated G</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_g.png</texture>
<visible>substring(listitem.mpaa,Australia:G)</visible>
</control>
<control type="image">
<description>Rated PG</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_pg.png</texture>
<visible>substring(listitem.mpaa,AustraliaG) + !substring(listitem.mpaa,AustraliaG-13)</visible>
</control>
<control type="image">
<description>Rated M</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_m.png</texture>
<visible>substring(Listitem.mpaa,Australia:M)+ !substring(listitem.mpaa,Australia:MA)</visible>
</control>
<control type="image">
<description>Rated MA</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_ma.png</texture>
<visible>substring(Listitem.mpaa,Australia:MA)</visible>
</control>
<control type="image">
<description>Rated R</description>
<width>90</width>
<height>33</height>
<aspectratio>keep</aspectratio>
<texture>flagging/ratings/australia_r.png</texture>
<visible>substring(Listitem.mpaa,Australia:R)</visible>
</control>
</include>
On your next restart of xbmc, go to Video Library -> View: Fanart.
This will show the AU ratings flag in the bottom right corner of the Movie info screen just under the plot.
Note, this is a first cut and only shows the MPAA flags when viewing the Fanart.
As I findout more about how this stuff hangs together I will try and post updates.
Hope this helps the AU users.
cheers,
dg