Merge pull request #909 from paddatrapper/api-current-track
Fix live-info-v2 current track info
This commit is contained in:
commit
5ef9c9da95
|
@ -104,7 +104,10 @@ SQL;
|
|||
$utcNow = new DateTime("now", new DateTimeZone("UTC"));
|
||||
|
||||
$shows = Application_Model_Show::getPrevCurrentNext($utcNow, $utcTimeEnd, $showsToRetrieve);
|
||||
$currentShowID = (is_array($shows['currentShow'] && count($shows['currentShow'])>0))?$shows['currentShow']['instance_id']:null;
|
||||
$currentShowID = null;
|
||||
if (is_array($shows['currentShow']) && count($shows['currentShow'])>0) {
|
||||
$currentShowID = $shows['currentShow']['instance_id'];
|
||||
}
|
||||
$source = self::_getSource();
|
||||
$results = Application_Model_Schedule::getPreviousCurrentNextMedia($utcNow, $currentShowID, self::_getSource());
|
||||
|
||||
|
|
Loading…
Reference in New Issue