2016-01-15, 22:31
Hi all,
In my skin I would need a Library.HasContent(Pictures), looking at the code it doesn't seem to be supported, so I am thinking about implementing this myself.
For me this should be true if at least one picture file has been detected in any of the declared picture sources from sources.xml. My idea was to a basic recursive search of all the declared path until a picture file is found.
Obviously for large volumes this can take some time, so I am thinking the result could be cached in a db, but then it would not detect additions/deletion of files in the concerned path.
Any suggestion about this?
PS: Is there a recommended way to search within list of path with kodi? Should I use the same implementation as the musicInfoScanner for instance?
In my skin I would need a Library.HasContent(Pictures), looking at the code it doesn't seem to be supported, so I am thinking about implementing this myself.
For me this should be true if at least one picture file has been detected in any of the declared picture sources from sources.xml. My idea was to a basic recursive search of all the declared path until a picture file is found.
Obviously for large volumes this can take some time, so I am thinking the result could be cached in a db, but then it would not detect additions/deletion of files in the concerned path.
Any suggestion about this?
PS: Is there a recommended way to search within list of path with kodi? Should I use the same implementation as the musicInfoScanner for instance?