Fix tabs bugs and podcast auto-ingest error

This commit is contained in:
Duncan Sommerville 2015-10-30 10:29:22 -04:00
parent d08e19a93a
commit 9af7f6dcdd
5 changed files with 26 additions and 19 deletions

View file

@ -35,8 +35,10 @@ class PodcastManager {
// that we're ingesting.
// Note that this folds to the failure case (Celery task timeout/download failure)
// but will at least continue to ingest new episodes.
$podcast->setDbAutoIngestTimestamp(gmdate('r', strtotime($episodes[0]->getDbPublicationDate())))->save();
$service->downloadEpisodes($episodes);
if (!empty($episodes)) {
$podcast->setDbAutoIngestTimestamp(gmdate('r', strtotime($episodes[0]->getDbPublicationDate())))->save();
$service->downloadEpisodes($episodes);
}
}
Application_Model_Preference::setPodcastPollLock(microtime(true));