Kodi Community Forum
Condition visible Based on Track-Year - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+--- Thread: Condition visible Based on Track-Year (/showthread.php?tid=107387)



Condition visible Based on Track-Year - donabi - 2011-08-10

Hi folks,

is it possible to show a specific Cd-Art ONLY if the Track is older than 1988?
i would like to display a fallback for tracks, which don't have a CD-Art AND are older than 1988.
I'm thinking of an old LP Image

By now i have ONE fallback for ALL tracks without CD-Art.


- ronie - 2011-08-10

from the top of my head and untested, but something like this should do it:

Code:
<visible>!IntegerGreaterThan(ListItem.Year,1987)</visible>



- donabi - 2011-09-17

yep. works.
i've used
<visible>IntegerGreaterThan(MusicPlayer.Year,1990)</visible>

thanks.