Kodi Community Forum
Missing image type - 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: Metropolis (https://forum.kodi.tv/forumdisplay.php?fid=162)
+---- Thread: Missing image type (/showthread.php?tid=366133)



Missing image type - Karellen - 2021-12-24

I see this in a few different views. Can you tell me what image the skin is looking for? How should it be named? Can it be changed to a Poster or Landscape image instead of forcing an image that is not common in Kodi?

Image


RE: Missing image type - MacGyver - 2022-01-31

I'm pretty sure that icon is displayed by this line.
 
Code:
<texture fallback="DefaultThumb.png">$INFO[ListItem.Icon]</texture>

The screen you displayed is likely from being created from DialogSelect.xml and Includes_DialogSelect.xml, the lines 106 and 130 could likely be re-written with a multi-line variable ending in the DefaultThumb.png if nothing else hits above it.

So changing the above line to something like this:
 
Code:
<texture>$VAR[GlobalDialogIcon]</texture>

and creating a variable in Includes_Variables.xml to include more possible file formats with something like this:
 
Code:
    <variable name="GlobalDialogIcon">
        <value condition="!String.IsEmpty(Container(8000).ListItem.Art(poster))">$INFO[Container(8000).ListItem.Art(poster)]</value>
        <value condition="!String.IsEmpty(Container(8000).ListItem.Art(actor))">$INFO[Container(8000).ListItem.Art(actor)]</value>
        <value condition="!String.IsEmpty(Container(8000).ListItem.Art(discart))">$INFO[Container(8000).ListItem.Art(discart)]</value>
        <value condition="!String.IsEmpty(Container(8000).ListItem.Art(Fanart))">$INFO[Container(8000).ListItem.Art(fanart)]</value>
        <value condition="![String.IsEmpty(Container(8000).ListItem.Icon) | String.StartsWith(Container(8000).ListItem.Icon, default)]">$INFO[Container(8000).ListItem.Icon]</value>
        <value>DefaultThumb.png</value>
    </variable>

Just create a new variable entirely or for the time being use something similar like GlobalWidgetIcon (it already tries poster before icon before resorting to the default image).

I don't control the official source, so it would be up to jingai to decide how he wants to improve it.


RE: Missing image type - Karellen - 2022-01-31

Thanks @MacGyver

I'll give that a try and let you know how it works out. Smile


RE: Missing image type - MacGyver - 2022-01-31

(2022-01-31, 00:42)MacGyver Wrote: something like this

 I'm not certain any of those are valid variables anymore, may want to consult the Wiki Smile