CC-4715: Better management of tracks that are shorter than they claim to be.
This commit is contained in:
parent
9c612d17a3
commit
fe44d23b74
|
@ -674,6 +674,12 @@ SQL;
|
||||||
$start = self::AirtimeTimeToPypoTime($item["start"]);
|
$start = self::AirtimeTimeToPypoTime($item["start"]);
|
||||||
$end = self::AirtimeTimeToPypoTime($item["end"]);
|
$end = self::AirtimeTimeToPypoTime($item["end"]);
|
||||||
|
|
||||||
|
list(,,,$start_hour,,) = explode("-", $start);
|
||||||
|
list(,,,$end_hour,,) = explode("-", $end);
|
||||||
|
|
||||||
|
$same_hour = $start_hour == $end_hour;
|
||||||
|
$independent_event = !$same_hour;
|
||||||
|
|
||||||
$schedule_item = array(
|
$schedule_item = array(
|
||||||
'id' => $media_id,
|
'id' => $media_id,
|
||||||
'type' => 'file',
|
'type' => 'file',
|
||||||
|
@ -687,7 +693,7 @@ SQL;
|
||||||
'end' => $end,
|
'end' => $end,
|
||||||
'show_name' => $item["show_name"],
|
'show_name' => $item["show_name"],
|
||||||
'replay_gain' => is_null($item["replay_gain"]) ? "0": $item["replay_gain"],
|
'replay_gain' => is_null($item["replay_gain"]) ? "0": $item["replay_gain"],
|
||||||
'independent_event' => false
|
'independent_event' => $independent_event,
|
||||||
);
|
);
|
||||||
self::appendScheduleItem($data, $start, $schedule_item);
|
self::appendScheduleItem($data, $start, $schedule_item);
|
||||||
}
|
}
|
||||||
|
@ -859,6 +865,8 @@ SQL;
|
||||||
$data = array();
|
$data = array();
|
||||||
$data["media"] = array();
|
$data["media"] = array();
|
||||||
|
|
||||||
|
//Harbor kick times *MUST* be ahead of schedule events, so that pypo
|
||||||
|
//executes them first.
|
||||||
self::createInputHarborKickTimes($data, $range_start, $range_end);
|
self::createInputHarborKickTimes($data, $range_start, $range_end);
|
||||||
self::createScheduledEvents($data, $range_start, $range_end);
|
self::createScheduledEvents($data, $range_start, $range_end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue