Kodi Community Forum
How to test if the playing song has fanart? - 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)
+---- Forum: Confluence (https://forum.kodi.tv/forumdisplay.php?fid=125)
---- Thread: How to test if the playing song has fanart? (/showthread.php?tid=134635)



How to test if the playing song has fanart? - TheEvilHammer - 2012-06-24

I want to modify my visualization screen so that fanart is displayed if and only if there's fanart for the currently playing song. Is there a boolean test I can use for this?


RE: How to test if the playing song has fanart? - Jezz_X - 2012-06-24

Bare in mind I have just added this to the main version source code https://github.com/xbmc/xbmc/commit/8c4f2ca087a46cf5ee6a285a50018a0fdd426329
the check is
PHP Code:
!IsEmpty(MusicPlayer.Property(Fanart_Image)) 



RE: How to test if the playing song has fanart? - TheEvilHammer - 2012-06-24

Excellent, that works perfectly. Thanks!


This forum uses Lukasz Tkacz MyBB addons.