Kodi Community Forum

Full Version: Rating Media Flag Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Currently my Flags are handled as such:

Code:
<control type="image">
      <width>109</width>
      <height>25</height>
    <posx>725</posx>
    <posy>85</posy>
      <aspectratio>keep</aspectratio>
      <texture>audio_codecs/mono.png</texture>
      <visible>substring(listitem.filename,mono)</visible>
<animation type="WindowOpen">
            <effect type="fade" start="0" end="100" time="300"/>
        </animation>
        <animation type="WindowClose">
            <effect type="fade" start="100" end="0" time="300"/>
        </animation>
    </control>

How would this work if I want it to read from the info provided from TMDB?
do you mean through the NFO files?

ListItem.ratingandvotes for the rating

not sure about custom entries in the NFO file though.

if not the sorry lol

also this would be a better way of doing your media flags as you will have crap loads of these if keep adding them to each entry.

Code:
Add this to the top or bottom of your media Flag xml

<include name="MediaFlagAnimation">
    <animation type="WindowOpen">
      <effect type="fade" start="0" end="100" time="300"/>
      </animation>
      <animation type="WindowClose">
      <effect type="fade" start="100" end="0" time="300"/>
      </animation>
</include>

New Code

    <control type="image">
      <width>109</width>
      <height>25</height>
      <posx>725</posx>
      <posy>85</posy>
      <aspectratio>keep</aspectratio>
      <texture>audio_codecs/mono.png</texture>
      <visible>substring(listitem.filename,mono)</visible>
      <include>MediaFlagAnimation</include>
    </control>

This way you only need to edit the two fields and it will effect all.
I'm thinking of NC17, PG, PG13 and so on