Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1816

multiple ratings (imdb, rt, etc)?

$
0
0
I'm trying to add multiple ratings in movie list view. Here's what I've done:

1) To get some extra data in I added this to the nfo file:

Code:
        <rating name="Metacritic" max="100" default="false">
            <value>75</value>
            <votes>48</votes>
        </rating>

Then I did a refresh in Kodi hoping that'll update my data base.

2) declared a var:

Code:
<variable name="Metacritic">
        <value condition="!IsEmpty($INFO[ListItem.Rating(Metacritic)])">$INFO[ListItem.Rating(Metacritic)]</value>
    </variable>

3) display:

Code:
            <control type="label">
                <width>auto</width>
                <centertop>50%</centertop>
                <height>64</height>
                <align>left</align>
                <aligny>center</aligny>
                <label>$VAR[Metacritic]</label>
                <font>Flag</font>
                <textcolor>Dark1</textcolor>
                <visible>true</visible>
            </control>

I know the display code is fine because if I change the var to "10" it shows fine. Either $INFO[ListItem.Rating(Metacritic) isn't working or my nfo trick didn't work.

Any suggestions?

Viewing all articles
Browse latest Browse all 1816

Trending Articles