-initial changes for CC-1944

This commit is contained in:
martin 2011-03-03 20:13:55 -05:00
parent 9759efc6cf
commit 2346be671e
6 changed files with 82 additions and 43 deletions

View file

@ -126,7 +126,12 @@ class ApiController extends Zend_Controller_Action
$from = $this->_getParam("from");
$to = $this->_getParam("to");
if (Schedule::ValidPypoTimeFormat($from) && Schedule::ValidPypoTimeFormat($to)) {
echo Schedule::ExportRangeAsJson($from, $to);
$result = Schedule::ExportRangeAsJson($from, $to);
$result['stream_metadata'] = array();
$result['stream_metadata']['format'] = "2";
$result['stream_metadata']['station_name'] = "z103";
$result['stream_metadata']['show_name'] = "dj danny D";
echo json_encode($result);
}
}