-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export playlists via API #908
Comments
I can't think of any way to solve your use case with the currently available API. Adding the The best solution would probably be to intelligently combine some use of the proper file API and direct DB queries. We are already doing something like this to implement the Folders view on the web UI. But this is quite delicate business which requires careful implementation and testing. So in the end, it would probably be easier to just add the |
Thank you for the detailed explanations, this is very helpful. So I'll close this in favor of #832. |
I would like to export playlists via API on a regular basis in order to throw them onto a local NAS which is read by a Sonos system. Having automatic playlist backups in an open format (m3u) would be a nice side effect.
The proprietary API endpoint
/api/playlists/{id}/export
seems to work only if called from the UI, so I tried the Subsonic endpoint/subsonic/rest/getPlaylist
and wanted to write the file paths from the API output into an m3u file, but thepath
key (which seems to be present in the original API, see example) is missing from the owncloud/music variant of the Subsonic API:Is there any other method to get the file paths programmatically or to export playlists? I have seen issue #832 and that would also solve my problem, but maybe including the file path in the
getPlaylist
Subsonic API response would be a quick solution for at least enabling users to do the export/sync themselves (can't estimate the effort).The text was updated successfully, but these errors were encountered: