Kodi Community Forum
Solved How to integrate music extrafanart in skin? - 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: Solved How to integrate music extrafanart in skin? (/showthread.php?tid=195451)



How to integrate music extrafanart in skin? - liltee89 - 2014-05-17

Hi to everyone,
I want to put artist extrafanart images (local images) as background in the music visualization. The skin will look in %artist%/extrafanart and if it founds images (or the folder) will display them. This is okay, but I want a little more.
I like very much the ability to download automagically the image from Fanart.TV, so I want to integrate these two things together. Is it possible? I mean when XBMC doesn't found an extrafanart folder (with compilation artists, for example) it looks on fanart.tv site and downloads the images...
The problem is: if the folder is empty, the skin display a black background! So I don't know how to set the condition "if there's no local images, look on fanart.tv". Is there a function to do this? Like "isEmpty(%something I dunno%)" ?

Any suggestions? Smile thanks a lot..