Duplicate code

This commit is contained in:
Pierre Rudloff 2016-10-14 19:16:52 +02:00
parent 34fa390256
commit b4d3b9d88b

View file

@ -255,12 +255,12 @@ class VideoDownload
);
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
$chain = new Chain($this->getRtmpProcess($video));
$chain->add('|', $avconvProc);
$process = $this->getRtmpProcess($video);
} else {
$chain = new Chain($this->getCurlProcess($video));
$chain->add('|', $avconvProc);
$process = $this->getCurlProcess($video);
}
$chain = new Chain($process);
$chain->add('|', $avconvProc);
return popen($chain->getProcess()->getCommandLine(), 'r');
}