diff options
author | James McGlashan (DarkFox) <mpd@darkfox.id.au> | 2014-01-02 22:09:40 +1100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-02 12:29:45 +0100 |
commit | d4dea53ae9078bb1b86ee5d364f1b05a6133400b (patch) | |
tree | f8170584aa44f52c7b2793ec561cec11216ec2ed /src | |
parent | d477a9222edbf48497b1225ae189408e9889f8bd (diff) | |
download | mpd-d4dea53ae9078bb1b86ee5d364f1b05a6133400b.tar.gz mpd-d4dea53ae9078bb1b86ee5d364f1b05a6133400b.tar.xz mpd-d4dea53ae9078bb1b86ee5d364f1b05a6133400b.zip |
http -> https for SoundCloud plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist/SoundCloudPlaylistPlugin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/playlist/SoundCloudPlaylistPlugin.cxx b/src/playlist/SoundCloudPlaylistPlugin.cxx index afcbaef23..63cf821f6 100644 --- a/src/playlist/SoundCloudPlaylistPlugin.cxx +++ b/src/playlist/SoundCloudPlaylistPlugin.cxx @@ -67,16 +67,16 @@ soundcloud_resolve(const char* uri) { char *u, *ru; - if (StringStartsWith(uri, "http://")) { + if (StringStartsWith(uri, "https://")) { u = g_strdup(uri); } else if (StringStartsWith(uri, "soundcloud.com")) { - u = g_strconcat("http://", uri, nullptr); + u = g_strconcat("https://", uri, nullptr); } else { /* assume it's just a path on soundcloud.com */ - u = g_strconcat("http://soundcloud.com/", uri, nullptr); + u = g_strconcat("https://soundcloud.com/", uri, nullptr); } - ru = g_strconcat("http://api.soundcloud.com/resolve.json?url=", + ru = g_strconcat("https://api.soundcloud.com/resolve.json?url=", u, "&client_id=", soundcloud_config.apikey.c_str(), nullptr); g_free(u); @@ -356,11 +356,11 @@ soundcloud_open_uri(const char *uri, Mutex &mutex, Cond &cond) char *u = nullptr; if (strcmp(arg, "track") == 0) { - u = g_strconcat("http://api.soundcloud.com/tracks/", + u = g_strconcat("https://api.soundcloud.com/tracks/", rest, ".json?client_id=", soundcloud_config.apikey.c_str(), nullptr); } else if (strcmp(arg, "playlist") == 0) { - u = g_strconcat("http://api.soundcloud.com/playlists/", + u = g_strconcat("https://api.soundcloud.com/playlists/", rest, ".json?client_id=", soundcloud_config.apikey.c_str(), nullptr); } else if (strcmp(arg, "url") == 0) { |