Kodi Community Forum

Full Version: fanart based on genre
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
how would it be possible to use a fanart based on the genre (of the currently selected item) if there is no fanart for this item instead of using just one fallback fanart?
PHP Code:
<control type="image">
    <
posx>0</posx>
    <
posy>0</posy>
    <
width>1280</width>
    <
height>720</height>
    <
texture fallback="FallbackImage.jpg">GenreFanart/$INFO[ListItem.Label].jpg</texture>
    <
visible>Container.Content(Genres)</visible>
</
control
Then make a folder in Media called 'GenreFanart' and fill it with the fanart you want to use. You'll also need to add <visible>!Container.Content(Genres)</visible> to the default fanart control.