Merge branch 'master' of dev.sourcefabric.org:airtime
This commit is contained in:
commit
569827abf9
|
@ -286,10 +286,11 @@ class ApiController extends Zend_Controller_Action
|
||||||
|
|
||||||
$show = new Show($show_inst->getShowId());
|
$show = new Show($show_inst->getShowId());
|
||||||
$description = $show->getDescription();
|
$description = $show->getDescription();
|
||||||
|
$hosts = $show->getHosts();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$soundcloud = new ATSoundcloud();
|
$soundcloud = new ATSoundcloud();
|
||||||
$soundcloud->uploadTrack($file->getRealFilePath(), $file->getName(), $description);
|
$soundcloud->uploadTrack($file->getRealFilePath(), $file->getName(), $description, $hosts);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
|
catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
|
||||||
|
|
|
@ -45,7 +45,9 @@ class ATSoundcloud {
|
||||||
'track[title]' => $filename,
|
'track[title]' => $filename,
|
||||||
'track[asset_data]' => '@' . $filepath,
|
'track[asset_data]' => '@' . $filepath,
|
||||||
'track[tag_list]' => $tags,
|
'track[tag_list]' => $tags,
|
||||||
'track[description]' => $description
|
'track[description]' => $description,
|
||||||
|
'track[downloadable]' => true,
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue