I’ve noticed that MPD has built-in support for SoundCloud playlists/tracks (I use MPD on Gentoo and there is a ‘USE=soundcloud’ flag which enables this).
A bit of searching threw up this post on the MPD developers thread and the source code on MPD’s Github project. I also came across a previous feature request on this on the Volumio GitHub Issues thats been Closed, but recently marked as an Enhancement.
Users of RuneAudio appear to have got this working (although it mentions not needing the API key).
Is the MPD version that comes with Volumio compiled with this in already?
If so it should be relatively straight-forward to implement since it requires the addition of the following to /etc/mpd.conf
playlist_plugin {
name "soundcloud"
enabled "true"
apikey "###########################"
}
API keys are generated from your SoundCloud account by going to “Developers” > “Register a New App”. I opt to call mine ‘mpd’ since thats whats connecting (I tried this out under Gentoo).
Its then possible to use mpc to add tracks and playlists to MPD in the following manner…
mpc load soundcloud://track/≤track-id>
mpc load soundcloud://playlist/≤playlist-id>
mpc load soundcloud://url/http://soundcloud.com/some/track/or/playlist
I can envisage the WebUI requiring a configuration page/option for users to enter their SoundCloud API Key, and then under “Browse” a “SoundCloud” option would then have fields for people to enter the names of their playlists, or better still if the users playlists could be retrieved automatically and presented to the user to choose from.