Added user and search paramaters for SoundCloud plugin
This commit is contained in:
parent
d4dea53ae9
commit
1ee3df6976
@ -363,6 +363,14 @@ soundcloud_open_uri(const char *uri, Mutex &mutex, Cond &cond)
|
|||||||
u = g_strconcat("https://api.soundcloud.com/playlists/",
|
u = g_strconcat("https://api.soundcloud.com/playlists/",
|
||||||
rest, ".json?client_id=",
|
rest, ".json?client_id=",
|
||||||
soundcloud_config.apikey.c_str(), nullptr);
|
soundcloud_config.apikey.c_str(), nullptr);
|
||||||
|
} else if (strcmp(arg, "user") == 0) {
|
||||||
|
u = g_strconcat("https://api.soundcloud.com/users/",
|
||||||
|
rest, "/tracks.json?client_id=",
|
||||||
|
soundcloud_config.apikey.c_str(), nullptr);
|
||||||
|
} else if (strcmp(arg, "search") == 0) {
|
||||||
|
u = g_strconcat("https://api.soundcloud.com/tracks.json?q=",
|
||||||
|
rest, "&client_id=",
|
||||||
|
soundcloud_config.apikey.c_str(), nullptr);
|
||||||
} else if (strcmp(arg, "url") == 0) {
|
} else if (strcmp(arg, "url") == 0) {
|
||||||
/* Translate to soundcloud resolver call. libcurl will automatically
|
/* Translate to soundcloud resolver call. libcurl will automatically
|
||||||
follow the redirect to the right resource. */
|
follow the redirect to the right resource. */
|
||||||
|
Loading…
Reference in New Issue
Block a user