Merge branch 'cc-5709-airtime-analyzer-cloud-storage' into cc-5709-airtime-analyzer-cloud-storage-saas
Conflicts: python_apps/pypo/pypofile.py
This commit is contained in:
commit
89925e52ed
2 changed files with 3 additions and 14 deletions
|
@ -778,11 +778,10 @@ SQL;
|
|||
* @param Array $item schedule info about one track
|
||||
* @param Integer $media_id scheduled item's cc_files id
|
||||
* @param String $uri path to the scheduled item's physical location
|
||||
* @param String $downloadURL URL PYPO makes to the REST API to download the file for playout
|
||||
* @param Integer $filsize The file's file size in bytes
|
||||
*
|
||||
*/
|
||||
private static function createFileScheduleEvent(&$data, $item, $media_id, $uri, $downloadURL, $filesize)
|
||||
private static function createFileScheduleEvent(&$data, $item, $media_id, $uri, $filesize)
|
||||
{
|
||||
$start = self::AirtimeTimeToPypoTime($item["start"]);
|
||||
$end = self::AirtimeTimeToPypoTime($item["end"]);
|
||||
|
@ -817,7 +816,6 @@ SQL;
|
|||
'show_name' => $item["show_name"],
|
||||
'replay_gain' => $replay_gain,
|
||||
'independent_event' => $independent_event,
|
||||
'download_url' => $downloadURL,
|
||||
'filesize' => $filesize,
|
||||
);
|
||||
|
||||
|
@ -955,10 +953,9 @@ SQL;
|
|||
$uri = $file->getAbsoluteFilePath();
|
||||
|
||||
$baseUrl = Application_Common_OsPath::getBaseDir();
|
||||
$downloadURL = "http://".$_SERVER['HTTP_HOST'].$baseUrl."rest/media/$media_id/download";
|
||||
$filesize = $file->getFileSize();
|
||||
|
||||
self::createFileScheduleEvent($data, $item, $media_id, $uri, $downloadURL, $filesize);
|
||||
self::createFileScheduleEvent($data, $item, $media_id, $uri, $filesize);
|
||||
}
|
||||
|
||||
elseif (!is_null($item['stream_id'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue