-initial changes for CC-1944
This commit is contained in:
parent
9759efc6cf
commit
2346be671e
6 changed files with 82 additions and 43 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue