Extend local webserver to provide files from internal/external storage via directory structure #70
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there,
I extended the local webserver included in DroidUPnP to show a new folder "Directories" which includes all storage volumes (internal and external) and their directory trees recursively. The feature may be disabled in the settings.
Only media files and folders will be shown. File type detection will be based on content (default) or file extension (faster) which can be configured in the settings.
Another speed optimization would be to not count the number of directory entries (not implemented).
Currently only reduced meta data is provided (no length of audio/videos, resolution of pictures/videos).
Unfortunately I had to increase the API level to 24 which works for my devices, but might not be suitable for others. This was mostly due to recent extensions of the StorageManager API. I'm also not happy to use an inofficial API here (getPath). Alternatives could be
I tested with Kodi media center only.
Is anyone interested in merging this feature into the main branch?
Best regards,
Stephan Ritscher