Search code examples
phpsoundcloud

Updating Soundcloud Playlist via Soundcloud Wrapper


In reference to this post How to create SoundCloud playlist using PHP wrapper

I am using the Njasm/Soundcloud Wrapper in PHP to manage our track uploads and playlist creation. According the the post referenced above I need to rebuild the entire track list whenever I want to update the playlist.

Is there a way to update a current playlist so that we can simply add a track to a playlist? Or do we have to rebuild the list of track id's each time?


Solution

  • First of all, thank you for using my library.

    In response to your question, and to the best of my knowledge, that's a limitation of the Soundcloud API itself. You'll have to recreate the playlists every time you want to update it.

    Reference: https://developers.soundcloud.com/docs/api/guide#creating-sets

    Hope it helps.

    PS - If you find a way to add/remove single track to/from an existing playlist, please be my guest and share the trick or send pull request in github. I'll be more then glad to merge it. :)