Jump to content

Folders API will not return folders that only contain another folders


Recommended Posts

Currently it appears folders API (either /folders or /folders/#/folders_and_files) only returns folders that contain music directly.


For example, for the following hierarchy:

  • A
    • B
      • C
        • [Music here]
      • D
        • [Music here]
    • E
      • [Music Here]


API will only return folders C, D and E, but not folders A or B.

I want to use API to retrieve full hierarchical structure of my music library. Is there another content URI I can try or is this just a limitation of the API? Could this be fixed?

This is with build 926. Thanks.

Link to comment
Share on other sites

Additionally, even if I manage to get ID of such folder (for example from parent folder ID field), there does not appear to be a way to play it.


Attempting to play content://com.maxmpz.audioplayer.data/folders/$folderId/folders_and_files where $folderId is the ID of such folder will not result in any playback (nothing happens when triggering this intent).

Link to comment
Share on other sites

  • 1 year later...

@matejdro /folders/ uri contains only folders with the songs. I updated the /folders_hier/ documentation as it seems API doc is out of sync for it:

- Hierarchy folders view
_id => 0 is the "root" folder, never contains files)
Root folders: content://com.maxmpz.audioplayer.data/folders_hier/0/subfolders
Any other sub-folders: content://com.maxmpz.audioplayer.data/folders_hier/#/subfolders
Sub-folder files: content://com.maxmpz.audioplayer.data/folders_hier/#/files


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...