matejdro Posted February 14, 2022 Share Posted February 14, 2022 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 https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/ Share on other sites More sharing options...
matejdro Posted February 14, 2022 Author Share Posted February 14, 2022 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 https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/#findComment-106149 Share on other sites More sharing options...
matejdro Posted February 14, 2022 Author Share Posted February 14, 2022 Found a workaround: Playing a folder through MediaBrowserCompat via "/folders_hier/$folderId/subfolders?shf=2" URI works. It would be nice to have that supported in the proper API though. Link to comment https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/#findComment-106152 Share on other sites More sharing options...
matejdro Posted December 6, 2023 Author Share Posted December 6, 2023 This seems to have changed in the last release and workaround does not work anymore. Any help from the Poweramp authors, please? Link to comment https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/#findComment-126811 Share on other sites More sharing options...
maxmp Posted December 6, 2023 Share Posted December 6, 2023 @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 content://com.maxmpz.audioplayer.data/folders_hier _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 https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/#findComment-126815 Share on other sites More sharing options...
matejdro Posted December 7, 2023 Author Share Posted December 7, 2023 Thank you! That helped a lot. Link to comment https://forum.powerampapp.com/topic/23153-folders-api-will-not-return-folders-that-only-contain-another-folders/#findComment-126836 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now