CC-2110 : Soundcloud file metadata
This commit is contained in:
parent
7706282d2a
commit
f184cc596a
|
@ -272,10 +272,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) {
|
||||
|
|
|
@ -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,
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue