From f184cc596a2c75946523becb26bd148936a3af76 Mon Sep 17 00:00:00 2001 From: Naomi Date: Wed, 30 Mar 2011 15:42:01 -0400 Subject: [PATCH] CC-2110 : Soundcloud file metadata --- application/controllers/ApiController.php | 3 ++- application/models/Soundcloud.php | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/application/controllers/ApiController.php b/application/controllers/ApiController.php index aac57fbbb..e501e11f1 100644 --- a/application/controllers/ApiController.php +++ b/application/controllers/ApiController.php @@ -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) { diff --git a/application/models/Soundcloud.php b/application/models/Soundcloud.php index 1fc5efa99..c47e4fae8 100644 --- a/application/models/Soundcloud.php +++ b/application/models/Soundcloud.php @@ -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, + );