Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Check if list item is an image/picture
#1
From one of my widgets I want to be able to start a slidshow of all the images in the widget. So is there a reliable way to check if a list item is an image/picture?

I know I can use ListItem.FileExtension but then I'd need to check every possible extension and that seems clunky, you can guarantee I'll miss one that somebody uses Big Grin

EDIT:-

Typical, just after posting I figure it out, ListItem.PicturePath is only set if the list litem is....  well a picture Blush
Reply

Logout Mark Read Team Forum Stats Members Help
Check if list item is an image/picture0