aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_list.c
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2012-02-27 13:19:45 +0100
committerMax Kellermann <max@duempel.org>2012-03-01 20:11:09 +0100
commit7cef52478dc2d5c5b9d2a75e34e4e57ca5cdb122 (patch)
tree1aa8b8a61aba3963f8cf376f4ab9310b0f98d3f2 /src/playlist_list.c
parente7ce362d22dd2292a357b167b74dccefc2b7612b (diff)
downloadmpd-7cef52478dc2d5c5b9d2a75e34e4e57ca5cdb122.tar.gz
mpd-7cef52478dc2d5c5b9d2a75e34e4e57ca5cdb122.tar.xz
mpd-7cef52478dc2d5c5b9d2a75e34e4e57ca5cdb122.zip
A soundcloud playlist plugin.
Requires YAJL to build, and this doesn't include the necessary automake changes. Can be built using ./configure CFLAGS="-I/usr/include/yajl" LIBS="-lyajl" --enable-soundcloud Add the following to your config: playlist_plugin { name "soundcloud" enabled "true" apikey "c4c979fd6f241b5b30431d722af212e8" } Then you can stream from soundcloud using calls like: mpc load soundcloud://track/<track-id> mpc load soundcloud://playlist/<playlist-id> mpc load soundcloud://url/http://soundcloud.com/some/track/or/playlist For the last case, you can leave off the http:// or http://soundcloud.com/ .
Diffstat (limited to '')
-rw-r--r--src/playlist_list.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/playlist_list.c b/src/playlist_list.c
index defc85249..64f03d46d 100644
--- a/src/playlist_list.c
+++ b/src/playlist_list.c
@@ -25,6 +25,7 @@
#include "playlist/xspf_playlist_plugin.h"
#include "playlist/lastfm_playlist_plugin.h"
#include "playlist/despotify_playlist_plugin.h"
+#include "playlist/soundcloud_playlist_plugin.h"
#include "playlist/pls_playlist_plugin.h"
#include "playlist/asx_playlist_plugin.h"
#include "playlist/rss_playlist_plugin.h"
@@ -54,6 +55,9 @@ static const struct playlist_plugin *const playlist_plugins[] = {
#ifdef ENABLE_LASTFM
&lastfm_playlist_plugin,
#endif
+#ifdef ENABLE_SOUNDCLOUD
+ &soundcloud_playlist_plugin,
+#endif
&cue_playlist_plugin,
&embcue_playlist_plugin,
NULL