Fix Celery callback URLs
This commit is contained in:
parent
17a03e088f
commit
0f5233b32e
|
@ -139,10 +139,12 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
||||||
*/
|
*/
|
||||||
private function _download($id, $url) {
|
private function _download($id, $url) {
|
||||||
$CC_CONFIG = Config::getConfig();
|
$CC_CONFIG = Config::getConfig();
|
||||||
|
$stationUrl = Application_Common_HTTPHelper::getStationUrl();
|
||||||
|
$stationUrl .= substr($stationUrl, -1) == '/' ? '' : '/';
|
||||||
$data = array(
|
$data = array(
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'callback_url' => Application_Common_HTTPHelper::getStationUrl() . '/rest/media',
|
'callback_url' => $stationUrl . 'rest/media',
|
||||||
'api_key' => $apiKey = $CC_CONFIG["apiKey"][0],
|
'api_key' => $apiKey = $CC_CONFIG["apiKey"][0],
|
||||||
);
|
);
|
||||||
$task = $this->_executeTask(static::$_CELERY_TASKS[self::DOWNLOAD], $data);
|
$task = $this->_executeTask(static::$_CELERY_TASKS[self::DOWNLOAD], $data);
|
||||||
|
|
Loading…
Reference in New Issue