ListItem.Rating in music library
#1
I'm using this variable in the video library:

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.
Reply
#2
If you want to have different images for focus and no focus, do it like this:

$INFO[ListItem.StarRating,rating/,nf.png]
$INFO[ListItem.StarRating,rating/,fo.png]

Simply create folders rating0.png, rating1.png and so on. Put your focus and no focus images inside them. I've done this also for watched/unwatched images and it works great.
Image
Reply
#3
Good out of the box thinking Smile Great tip, cheers !
Reply

Logout Mark Read Team Forum Stats Members Help
ListItem.Rating in music library0