CC-3532: Now Playing GUI-> Progress bar is still playing after end of show
-fixed
This commit is contained in:
parent
edcce7432d
commit
366ea78fce
2 changed files with 11 additions and 6 deletions
|
@ -308,7 +308,6 @@ class ScheduleController extends Zend_Controller_Action
|
|||
|
||||
public function getCurrentPlaylistAction()
|
||||
{
|
||||
|
||||
$range = Application_Model_Schedule::GetPlayOrderRange();
|
||||
|
||||
/* Convert all UTC times to localtime before sending back to user. */
|
||||
|
@ -348,7 +347,6 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$this->view->switch_status = $switch_status;
|
||||
|
||||
$this->view->entries = $range;
|
||||
|
||||
}
|
||||
|
||||
public function removeGroupAction()
|
||||
|
|
|
@ -71,8 +71,15 @@ class Application_Model_Schedule {
|
|||
return;
|
||||
|
||||
global $CC_CONFIG, $CC_DBC;
|
||||
$sql = 'Select ft.artist_name, ft.track_title, st.starts as starts, st.ends as ends, st.media_item_played as media_item_played
|
||||
FROM cc_schedule st LEFT JOIN cc_files ft ON st.file_id = ft.id
|
||||
$sql = 'Select ft.artist_name,
|
||||
ft.track_title,
|
||||
st.starts as starts,
|
||||
st.ends as ends,
|
||||
st.media_item_played as media_item_played,
|
||||
si.ends as show_ends
|
||||
FROM cc_schedule st
|
||||
LEFT JOIN cc_files ft ON st.file_id = ft.id
|
||||
LEFT JOIN cc_show_instances si on st.instance_id = si.id
|
||||
WHERE ';
|
||||
|
||||
if (isset($p_previousShowID)){
|
||||
|
@ -115,7 +122,7 @@ class Application_Model_Schedule {
|
|||
}
|
||||
$results['current'] = array("name"=>$rows[$i]["artist_name"]." - ".$rows[$i]["track_title"],
|
||||
"starts"=>$rows[$i]["starts"],
|
||||
"ends"=>$rows[$i]["ends"],
|
||||
"ends"=> (($rows[$i]["ends"] > $rows[$i]["show_ends"]) ? $rows[$i]["show_ends"]: $rows[$i]["ends"]),
|
||||
"media_item_played"=>$rows[$i]["media_item_played"],
|
||||
"record"=>0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue