Open evertiro opened 6 years ago
RE: https://forum.kodi.tv/showthread.php?tid=327042&pid=2714355#pid2714355
Sorry guys, Yes you are correct it is window properties and so only possible for the focused item. Have been reviewing my skin code for Voldermorts extras script implementation and now realise what he did to allow flags for focused AND unfocused listitems. He copied a image file named for the listitems DBID into his scripts addon_data directory for each listitem with extras found during his extras directory scan. Then the skin writer would use something like this to display the file:
$INFO[ListItem.DBID,special://profile/addon_data/script.videoextras/movies/,.png]
Rather cunning really. At the risk of being labelled a Deatheater, could not the same trick be pulled but stored in the Kodi video library as a new Art type (SpecialFeatureFlag). That way we could take advantage of the library image cache and avoid some of the file i/o that the above entails. Pretty sure addons are allowed to add new Art types to the db, otherwise just use the original trick and we can then show a flag for both focused and unfocused listitems.
Cross posted from https://forum.kodi.tv/showthread.php?tid=327042&pid=2714296#pid2714296
The following has been suggested as a quick fix:
<visible>System.HasAddon(plugin.video.specialfeatures) + !String.IsEmpty(Window(home).Property(SpecialFeatures.Visible))</visible>
Per wyrm: