AMT script mpaa icon in AMT plugin?
#1
I've been implementing some of the infolabels available in the AMT script in my library views so they are available when using the plugin version of AMT too. Stuff like movie release dates for example.
One thing I like about the AMT script is how the mpaa rating is displayed in the form of an icon instead of a line of text that is usually very long.
Is it possible to pull this image in when using the plugin version too? If not, would it be feasible to do this?
Reply
#2
name them R.png, PG.png and add an image control.

<texture>$INFO[ListItem.MPAA].png</texture>

I think will work
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
That works. Awesome Smile
Thanks Nuka!
Reply
#4
Jeroen - I've just started using Focus after a long stint with MediaStream and I love it. I've modified some of the views and am trying to get the MPAA icon to show up in the fanart view with movies. What's weird is that it shows up in the fanart view when viewing the AMTII plugin? So I know that code is correct...I think. Is there something I'm missing on pulling the MPAA icon into the skin for the Video Library? Thanks for any help.

Here's what I have in the ViewsVideo.xml
Code:
            <control type="image">
<posx>900</posx>
<posy>40</posy>
<width>100</width>
<height>40</height>
<visible>System.IdleTime(3)</visible>
<texture>$INFO[ListItem.mpaa].png</texture>
</control>
Reply
#5
the mpaa rating in library has a bunch of extra text

eg: Rating PG-13 for sexual content.

it might be nice to store both in the library, so it only has PG-13. then your code would work, but that's a xbmc feature request.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
Ahh ok, Thanks Nuka. I thought I was doing something wrong.

Edit - OK so I realized that I CAN get this to work, but I have to have a local NFO for each movie and in the MPAA section, specify ONLY the rating. I've verified that it does work. Now I have to decide if I want this bad enough to do local NFO's for all my movies. Eek
Reply
#7
you may be able to have an image control for each rating.

then use.

<texture>PG.png</texture>
<visible>substring(ListItem.MPAA,Rating PG )</visible>

notice the space after PG, so PG13 does not show
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
AMT script mpaa icon in AMT plugin?0