2015-09-01, 17:32
Hi,
I need to add a new boolean property for my work on hiding unavailable library items.
I've successfully hidden items by using the "IsSpecial" FileItem property like this
In Kodi core:
pItem->SetProperty("isspecial", true);
and in the skin xml (ViewVideoLibrary.xml):
<visible>!ListItem.Property(IsSpecial)</visible>
But of course, isspecial is used by other parts of Kodi so I need to move this to another property. Creating the property in Kodi core seems to work with pItem->SetProperty("isavailable", true); But how do I create a corresponding "getter" for the skin, like ListItem.Property(IsAvailable)?
I need to add a new boolean property for my work on hiding unavailable library items.
I've successfully hidden items by using the "IsSpecial" FileItem property like this
In Kodi core:
pItem->SetProperty("isspecial", true);
and in the skin xml (ViewVideoLibrary.xml):
<visible>!ListItem.Property(IsSpecial)</visible>
But of course, isspecial is used by other parts of Kodi so I need to move this to another property. Creating the property in Kodi core seems to work with pItem->SetProperty("isavailable", true); But how do I create a corresponding "getter" for the skin, like ListItem.Property(IsAvailable)?