CC-1987 : Automatic upload of recorded shows to Soundcloud

created Soundcloud.php in models, added upload track method.
using python-setuptools in install to find poster package to be able to upload recoded file to airtime and then to soundcloud.
This commit is contained in:
naomiaro 2011-03-21 15:48:44 -04:00
parent a3a8ae104a
commit 60649cba8a
10 changed files with 71 additions and 29 deletions

View file

@ -167,7 +167,12 @@ class PluploadController extends Zend_Controller_Action
$upload_dir = ini_get("upload_tmp_dir");
$file = $this->upload($upload_dir);
//$file->getRealFilePath();
if(Application_Model_Preference::GetDoSoundCloudUpload())
{
$soundcloud = new ATSoundcloud();
$soundcloud->uploadTrack($file->getRealFilePath(), $file->getName());
}
die('{"jsonrpc" : "2.0", "id" : '.$file->getId().' }');
}