CC-2110 : Soundcloud file metadata

This commit is contained in:
Naomi 2011-03-30 15:42:01 -04:00
parent 7706282d2a
commit f184cc596a
2 changed files with 5 additions and 2 deletions

View File

@ -272,10 +272,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) {

View File

@ -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,
); );