source of listitem.Icon
#1
Hi, couple of parts to this question. 

In the skinning manual it says:

https://kodi.wiki/view/Skinning_Manual
Quote:ListItem.Icon Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control. If no thumbnail image exists, it will show the default icon.

On this page in the wiki (https://kodi.wiki/view/Artwork/Accessing...d_JSON-RPC), it says:
Quote:ListItem.Art(thumb) Thumb of the currently focused media item. This has some notable fallback behavior in the video library. It will be the artwork type named exactly "thumb" if it exists for the current item, but will fall back to "poster" then "banner" if not.

1. Does this mean that ListItem.Icon falls back like so?
xxx-thumb.jpg > xxx-poster.jpg > xxx-banner.jpg > default icon?

2. When will it auto generate a thumbnail based on an image from the video? In my files view, ListItem.Icon appears also to fall back to xxx-fanart.jpg if that's present before it auto generates an icon?

3. In files views, is there an easy way to see in the skin what lisitem.icon will fall back to? I need to move a label depending on if the artwork is a portrait or landscape. If I put ListItem.Icon in a label, it just shows the filename (including path) of the video file, but doesn't appear to change depending on whether a poster or a fanart or an auto generated thumbnail is shown?
Reply
#2
Here's another scenario

File view - Folder 1 contains fanart.jpg, folder 2 contains no artwork
The first shows the fanart.jpg while the second is blank (I've removed the fallback icons), but they both show DefaultFolder.png as the value for ListItem.Icon... so really what I was wondering in the post above is - is there a way for me to be able to figure out what listitem.Icon will show within my skin?
Reply
#3
With Matrix the fallback to banner/poster has been removed. 
ListItem.Icon =Default icon or ListItem.Art(thumb) or empty. 
So we have at least no strange aspect ratio stretchings anymore. But it still can be any size. Usually 1:1, 4:3 or 16:9.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#4
(2020-05-11, 19:42)sualfred Wrote: With Matrix the fallback to banner/poster has been removed. 
ListItem.Icon =Default icon or ListItem.Art(thumb) or empty. 
So we have at least no strange aspect ratio stretchings anymore. But it still can be any size. Usually 1:1, 4:3 or 16:9.

That's good to know, I'll keep this in mind, Thanks @sualfred for the info!
Reply

Logout Mark Read Team Forum Stats Members Help
source of listitem.Icon0