Aeon Madnox for Krypton / Jarvis - (no longer in development)
(2016-03-03, 03:46)meowmoo Wrote: @ Master bob

Is it possible to get the logo for the current playing movie/episode somehow? There is only VideoPlayer.Cover, the pause screen show ClearArt but I cant find the code for it :/

also can i add a "check" to a variable?

Code:
<value condition="Container.Content(artists) | Container.Content(albums) | Container.Content(songs)">$INFO[Skin.String(ArtistsLogosPath)]$INFO[Container.ListItem.Artist,,\logo.png]</value>
        <value>$INFO[Window(Home).Property(SkinHelper.Music.ClearLogo)]</value>

I need to check if the logo.png is present or not, if not it should use skinhelper

Thanks

I suspect you want $VAR[PlayerArtworkVar] - variables.xml, line 3192. Also Image Available in Kodi is a good reference, though there are actually more images available if Artwork Downloader has been run.

Kodi doesn't have a 'does the file exist' check available (to skins, at least). If you're using a pure Player.Art solution, you can use <value condition="!IsEmpty(Player.Art(artworkType)">$INFO[Player.Art(artworkType)]</value>. That wouldn't work for the example you posted, though, as the ArtistsLogosPath won't be empty. In that scenario, you need to start putting in workarounds...

There are a couple of ways to check if Kodi was able to load the image you specified and use a second image control to load a fallback image if it wasn't. The most foolproof is of course the most complex, but should cover most scenarios (except trying to do this in lists, if memory serves).

Give the existing image control an id, if it doesn't have one:-

Code:
<control type="image" id="xxxx">

Add a fallback element to the <texture> tag of the image control, with its value something like the following (making sure whatever you put in the fallback doesn't actually exist):-

Code:
<texture fallback="NoImage.png">$VAR[whateverVarYoureUsingToLoadIt]</texture>

Add a second image control, and give it a visibility condition:-

Code:
<visible>StringCompare(Control.GetLabel(xxxx),NoImage.png)</visible>


Messages In This Thread
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:08
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:08
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:09
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:09
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:10
RE: Aeon Madnox - Beta Release - by Mike_Doc - 2015-06-29, 17:10
MADNOX FAQ - by schimi2k - 2015-06-29, 17:11
MADNOX HELP - by schimi2k - 2015-06-29, 17:12
RE: Aeon Madnox - Beta Release - by schimi2k - 2015-06-29, 17:12
RE: Aeon Madnox [RC1] for Jarvis *** Important Please read first post (27/02)*** - by BobCratchett - 2016-03-03, 09:18
refresh item - by bill1972 - 2016-03-08, 03:31
Keyboard Autocompletion - by JinNJuice - 2016-03-19, 00:26
System Infoline - by reksp13 - 2016-04-09, 05:20
https://imageshack.com/my/images - by spook61 - 2016-04-14, 17:55
https://imageshack.com/my/images - by spook61 - 2016-04-14, 18:01
Leia - Madnox Problems - by Picard - 2017-06-22, 04:15
VideoLyrics - by Pr.Sinister - 2018-04-05, 23:40
Logout Mark Read Team Forum Stats Members Help
Aeon Madnox for Krypton / Jarvis - (no longer in development)39