Here’s how vteam #377 dealt with the need to download songs from SoundCloud and save them as mp3s to Dropbox:
Not all songs are downloadable, so those can’t be saved. SoundCloud also hosts differing file formats, including MPEG-4, so those files would have to be converted before saving. This was done by developing an Application Programming Interface (API) to process the files in a fairly straightforward fashion:
- Intelligently handle downloadable tracks, based on availability.
- Download the track to the server:
- If it’s an mp3, save it directly to Dropbox.
- If not, then convert it using FFMpeg, verify it and save it to Dropbox.