This commit is contained in:
Pierre Rudloff 2017-10-29 23:21:13 +01:00
parent f30582a7c3
commit 0a2971399b
7 changed files with 53 additions and 53 deletions

View file

@ -94,10 +94,10 @@ class PlaylistArchiveStream extends TarArchive
$this->buffer = fopen('php://temp', 'r+');
foreach (explode(';', parse_url($path, PHP_URL_HOST)) as $url) {
$this->files[] = [
'url' => urldecode($url),
'headersSent'=> false,
'complete' => false,
'stream' => null,
'url' => urldecode($url),
'headersSent' => false,
'complete' => false,
'stream' => null,
];
}
@ -124,7 +124,7 @@ class PlaylistArchiveStream extends TarArchive
{
//We need this so Slim won't try to get the size of the stream
return [
'mode'=> 0010000,
'mode' => 0010000,
];
}

View file

@ -195,12 +195,12 @@ class VideoDownload
private function addOptionsToRtmpProcess(ProcessBuilder $builder, $video)
{
foreach ([
'url' => 'rtmp',
'webpage_url' => 'pageUrl',
'player_url' => 'swfVfy',
'url' => 'rtmp',
'webpage_url' => 'pageUrl',
'player_url' => 'swfVfy',
'flash_version' => 'flashVer',
'play_path' => 'playpath',
'app' => 'app',
'play_path' => 'playpath',
'app' => 'app',
] as $property => $option) {
if (isset($video->{$property})) {
$builder->add('--'.$option);