2011-10-08, 20:38
I'm using this variable in the video library:
Which works fine. I wanted to do the same for albums and songs in the music library and it didn't work.
Seems like ListItem.Rating doesn't return any results in the music library. Is that to be expected? Using ListItem.StarRating does show the rating, but I can't use that as I need to have different textures for the focused item.
PHP Code:
<variable name="rating_Stars.Video">
<value condition="!IntegerGreaterThan(ListItem.Rating,1)">rating/mono/rating0.png</value>
<value condition="!IntegerGreaterThan(ListItem.Rating,2)">rating/mono/rating1.png</value>
<value condition="!IntegerGreaterThan(ListItem.Rating,4)">rating/mono/rating2.png</value>
<value condition="!IntegerGreaterThan(ListItem.Rating,6)">rating/mono/rating3.png</value>
<value condition="!IntegerGreaterThan(ListItem.Rating,8)">rating/mono/rating4.png</value>
<value>rating/mono/rating5.png</value>
</variable>
Which works fine. I wanted to do the same for albums and songs in the music library and it didn't work.
Seems like ListItem.Rating doesn't return any results in the music library. Is that to be expected? Using ListItem.StarRating does show the rating, but I can't use that as I need to have different textures for the focused item.