diff --git a/airtime_mvc/application/configs/constants.php b/airtime_mvc/application/configs/constants.php index 00055588a..73f996324 100644 --- a/airtime_mvc/application/configs/constants.php +++ b/airtime_mvc/application/configs/constants.php @@ -35,3 +35,7 @@ define('UI_MDATA_VALUE_FORMAT_STREAM', 'live stream'); // Session Keys define('UI_PLAYLIST_SESSNAME', 'PLAYLIST'); + +// Soundcloud contants +define('SC_PROGRESS', -2); +define('SC_ERROR', -2); diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index c7595e429..7e6b5768f 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -413,7 +413,7 @@ class ApiController extends Zend_Controller_Action $this->setSoundCloudErrorCode($code); $this->setSoundCloudErrorMsg($msg); // setting sc id to -3 which indicates error - $this->setSoundCloudFileId(-3); + $this->setSoundCloudFileId(SC_ERROR); if(!in_array($code, array(0, 100))) { break; } diff --git a/utils/soundcloud-uploader.php b/utils/soundcloud-uploader.php index df1577d4b..0527e8467 100644 --- a/utils/soundcloud-uploader.php +++ b/utils/soundcloud-uploader.php @@ -60,6 +60,6 @@ if(count($argv) != 2){ $id = $argv[1]; $file = Application_Model_StoredFile::Recall($id); // set id with -2 which is indicator for processing -$file->setSoundCloudFileId(-2); +$file->setSoundCloudFileId(SC_PROGRESS); $file->uploadToSoundCloud();