Merge branch 'master' of dev.sourcefabric.org:airtime

This commit is contained in:
martin 2011-03-30 17:06:15 -04:00
commit 569827abf9
2 changed files with 5 additions and 2 deletions

View File

@ -286,10 +286,11 @@ class ApiController extends Zend_Controller_Action
$show = new Show($show_inst->getShowId());
$description = $show->getDescription();
$hosts = $show->getHosts();
try {
$soundcloud = new ATSoundcloud();
$soundcloud->uploadTrack($file->getRealFilePath(), $file->getName(), $description);
$soundcloud->uploadTrack($file->getRealFilePath(), $file->getName(), $description, $hosts);
break;
}
catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {

View File

@ -45,7 +45,9 @@ class ATSoundcloud {
'track[title]' => $filename,
'track[asset_data]' => '@' . $filepath,
'track[tag_list]' => $tags,
'track[description]' => $description
'track[description]' => $description,
'track[downloadable]' => true,
);