Posts: 3,956
Joined: Dec 2008
Reputation:
62
ListItem.IsSelected
does not work for me. I have to use
<visible>StringCompare(ListItem.Label,MusicPlayer.Album)</visible>
or <visible>StringCompare(ListItem.Label,VideoPlayer.Title)</visible>
... depending on container.content instead. Can anyone confirm before I trac it?
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
You have to use ListItem.IsPlaying... should work for movies, episodes & songs.
Posts: 3,956
Joined: Dec 2008
Reputation:
62
Thanks for the tip. Do you happen to know what's the difference between these 2:
ListItem.IsPlaying Returns whether the current ListItem.* info labels and images are currently Playing media
ListItem.IsSelected Returns whether the current ListItem is selected (f.e. currently playing in playlist window)
Posts: 2,441
Joined: Apr 2009
Reputation:
73
`Black
Team-Kodi Member
Posts: 2,441
No idea... maybe IsSelected is obsolete and that's the reason why it's not working anymore.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
IsSelected typically means it's highlighted for some reason (eg is the focused item for the context menu). I don't think there's many places you'd want to use it other that perhaps in the filemanager.
IIRC it's all done of the <selectedcolor> you specify in labels - i.e. you probably don't need to use ListItem.IsSelected anywhere.
Posts: 3,956
Joined: Dec 2008
Reputation:
62
OK, thanks for explanation.