Kodi Community Forum
EPG Genretype problem - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: EPG Genretype problem (/showthread.php?tid=159802)



EPG Genretype problem - Jeroen - 2013-03-19

So I noticed my EPG Timeline view does not show any background textures for other/unknown genres anymore. Last time I worked on the PVR this worked:

PHP Code:
<control type="image" id="13">
    <
description>other unknown</description>
    <
texture>backgroundtexture.png</texture>
    <
colordiffuse>ff651765</colordiffuse>
    <
visible>stringcompare(ListItem.Property(GenreType),0) | stringcompare(ListItem.Property(GenreType),240)</visible>
</
control

I added stringcompares for the other added values for unknown genre (192,208 and 224) but no effect.
Setting IsEmpty(ListItem,Property(GenreType)) as a condition wouldn't do the trick either.

Am I missing something here, are there more values for unknown?

Cheers,
Jeroen


RE: EPG Genretype problem - `Black - 2013-03-20

Noticed that, too. You can do this as a workaround but you have to use multiple textures.

PHP Code:
<texture border="12" fallback="windows/pvr/genres/0.png">$INFO[ListItem.Property(GenreType),windows/pvr/genres/,.png]</texture

Seems that ListItem.Property(GenreType) is sometimes 10, 20, 30 or whatever if the genre type is 0.


RE: EPG Genretype problem - Jeroen - 2013-03-20

Yeah, using multiple textures is something I intended to avoid Smile