Fix bug in podcast download
This commit is contained in:
parent
5eaf74bbd9
commit
eff7cd2f07
2 changed files with 9 additions and 17 deletions
|
@ -145,7 +145,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
'id' => $id,
|
||||
'url' => $url,
|
||||
'callback_url' => $stationUrl . 'rest/media',
|
||||
'api_key' => $apiKey = $CC_CONFIG["apiKey"][0],
|
||||
'api_key' => $CC_CONFIG["apiKey"][0],
|
||||
);
|
||||
$task = $this->_executeTask(static::$_CELERY_TASKS[self::DOWNLOAD], $data);
|
||||
// Get the created ThirdPartyTaskReference and set the episode ID so
|
||||
|
@ -251,7 +251,7 @@ class Application_Service_PodcastEpisodeService extends Application_Service_Thir
|
|||
public static function getStuckPendingImports() {
|
||||
$timeout = gmdate(DEFAULT_TIMESTAMP_FORMAT, (microtime(true) - self::PENDING_EPISODE_TIMEOUT_SECONDS));
|
||||
$episodes = PodcastEpisodesQuery::create()
|
||||
->filterByDbFileId(null, Criteria::ISNULL)
|
||||
->filterByDbFileId()
|
||||
->find();
|
||||
$stuckImports = array();
|
||||
foreach ($episodes as $episode) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue