diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2012-02-27 13:19:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-03-01 20:11:09 +0100 |
commit | 7cef52478dc2d5c5b9d2a75e34e4e57ca5cdb122 (patch) | |
tree | 1aa8b8a61aba3963f8cf376f4ab9310b0f98d3f2 /src/playlist/soundcloud_playlist_plugin.h | |
parent | e7ce362d22dd2292a357b167b74dccefc2b7612b (diff) | |
download | mpd-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 'src/playlist/soundcloud_playlist_plugin.h')
-rw-r--r-- | src/playlist/soundcloud_playlist_plugin.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/playlist/soundcloud_playlist_plugin.h b/src/playlist/soundcloud_playlist_plugin.h new file mode 100644 index 000000000..e09e2dd46 --- /dev/null +++ b/src/playlist/soundcloud_playlist_plugin.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2003-2011 The Music Player Daemon Project + * http://www.musicpd.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPD_PLAYLIST_SOUNDCLOUD_PLAYLIST_PLUGIN_H +#define MPD_PLAYLIST_SOUNDCLOUD_PLAYLIST_PLUGIN_H + +extern const struct playlist_plugin soundcloud_playlist_plugin; + +#endif |