diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-05-23 18:59:53 +0100 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-05-23 18:59:53 +0100 |
commit | 10ed21a4987113f2debece87d81ba801991570e3 (patch) | |
tree | 12fb7a05ca8431d679d3c1ef19da1fd3fecc43a1 /libs/ardour/soundcloud_upload.cc | |
parent | 29f0ad473f1a6a23127d247abee673a5d6025df5 (diff) |
Set 'downloadable' property on Soundcloud uploads
Set the downloadable property according to what the user chose on files
uploaded to Soundcloud.
Diffstat (limited to 'libs/ardour/soundcloud_upload.cc')
-rw-r--r-- | libs/ardour/soundcloud_upload.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/soundcloud_upload.cc b/libs/ardour/soundcloud_upload.cc index 6fe32663f8..ab3a20480b 100644 --- a/libs/ardour/soundcloud_upload.cc +++ b/libs/ardour/soundcloud_upload.cc @@ -198,6 +198,14 @@ SoundcloudUploader::Upload(std::string file_path, std::string title, std::string CURLFORM_COPYCONTENTS, ispublic ? "public" : "private", CURLFORM_END); + curl_formadd(&formpost, + &lastptr, + CURLFORM_COPYNAME, "track[downloadable]", + CURLFORM_COPYCONTENTS, downloadable ? "true" : "false", + CURLFORM_END); + + + /* initalize custom header list (stating that Expect: 100-continue is not wanted */ struct curl_slist *headerlist=NULL; |