CC-1665: Scheduled stream rebroadcasting and recording

-playlists load contents now correctly identify tracks vs streams
This commit is contained in:
Martin Konecny 2012-07-20 17:38:11 -04:00
parent cf2f96ecf1
commit 8b2facaa96
15 changed files with 283 additions and 105 deletions

View file

@ -293,8 +293,8 @@ class PlaylistController extends Zend_Controller_Action
public function addItemsAction()
{
$ids = $this->_getParam('ids', array());
$ids = (!is_array($ids)) ? array($ids) : $ids;
$aItems = $this->_getParam('aItems', array());
$aItems = (!is_array($aItems)) ? array($aItems) : $aItems;
$afterItem = $this->_getParam('afterItem', null);
$addType = $this->_getParam('type', 'after');
$obj_type = $this->_getParam('obj_type');
@ -307,17 +307,13 @@ class PlaylistController extends Zend_Controller_Action
} else {
throw new PlaylistDyanmicException;
}
}
catch (PlaylistOutDatedException $e) {
$this->playlistOutdated($e);
}
catch (PlaylistNotFoundException $e) {
$this->playlistNotFound($obj_type);
}
catch (PlaylistDyanmicException $e) {
$this->playlistDynamic($obj);
}
catch (Exception $e) {
} catch (PlaylistOutDatedException $e) {
$this->playlistOutdated($pl, $e);
} catch (PlaylistNotFoundException $e) {
$this->playlistNotFound();
} catch (PlaylistDyanmicException $e) {
$this->playlistDynamic($pl);
} catch (Exception $e) {
$this->playlistUnknownError($e);
}
}