Confluence: Australian MPAA info
#1
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,AustraliaTongueG) + !substring(listitem.mpaa,AustraliaTongueG-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
Reply
#2
Thanks for sharing. Worked after i realised i was editing an old version of confluence in the depreciated 'skin' folder, after upgrading to svn its now in 'addons' folder.

Editing the views wasn't too difficult either.. In 'media info 2' I pushed the codec info to the left and put the mpaa next to it. and also added it to the movie info overlay.

Let me know if you run into any difficulties and I should be able to help you out.
Reply
#3
Hi Nick8888,
your assistance would be greatly appreciated.
I tried looking for the right file to add MPAA flag to 'MEDIA INFO', 'MEDIA INFO2' etc.
Just could't find the file.

Can you please advise on how to add MPAA flag to the differnt screens.

cheers,
dg
Reply
#4
/xbmc/addons/skin.confluence/720p/ViewsVideoLibrary.xml

Beneath <include name="MediaListView3"> find this

Code:
<control type="grouplist">
                    <description>Media Codec Flagging Images</description>
                    <posx>0</posx>
                    <posy>480</posy>
                    <width>590</width>
                    <align>left</align>
                    <itemgap>0</itemgap>
                    <orientation>horizontal</orientation>
                    <include>VideoCodecFlaggingConditions</include>
                    <include>AudioCodecFlaggingConditions</include>
                    <include>AspectCodecFlaggingConditions</include>
                    <include>VideoTypeHackFlaggingConditions</include>
                </control>
add this directly after:
Code:
                <control type="grouplist">
                    <description>MPAA Rating Flagging Images</description>
                    <posx>400</posx>
                    <posy>465</posy>
                    <width>400</width>
                    <align>left</align>
                    <itemgap>0</itemgap>
                    <orientation>horizontal</orientation>
                    <include>VideoMPAAFlaggingConditions</include>
                </control>


Change posx and posy to your liking.

Alternatively you can add this to DialogVideoInfo.xml
Reply
#5
hi nick8888,
many thanks for the snippit.
I have managed to get the MPAA flags showing in Library mode for:
1. Media Info
2. Media Info 2
3. Wrap
4. Fanart

However I coudn't find a the right place for:
1. List
2. ThumbNail

Any direction would be appreciated.

I will publish the final ViewsVideoLibrary.xml file once I have finished.

cheers,
dg
Reply
#6
I'm not 100% but my guess would be ViewsFileMode.xml as those two views are also present in the non-library modes.
Reply

Logout Mark Read Team Forum Stats Members Help
Confluence: Australian MPAA info0