How could this be a DLNA limitation? I think what you meant by that is:
"Setting a 'hide this folder' because it has no contents" is a functionality that DLNA protocol does not contain. And that I assume is true.
HOWEVER, given that the client (and obviously "DLNA") doesn't see the physical contents of the server, there is no reason why the Server, while reading the files/folders that it has been told to watch could not based on a new flag "Ignore Directory branches without files" behave as follows:
- Read directory, if no supported files are contained within it, then ignore this directory (meaning not added to DB, DLNA message, etc)
- If directories are nested, only directories with supported files should be read/stored/etc. If no directory within a branch contains a supported file, then the entire branch is ignored until a valid file is added somewhere in the branch.
This logic has nothing to do with DLNA... It could be written to write a CSV file of "file system branches with valid files" if so desired (or used to create DLNA structure)...
