Duplicate code
This commit is contained in:
parent
34fa390256
commit
b4d3b9d88b
1 changed files with 4 additions and 4 deletions
|
@ -255,12 +255,12 @@ class VideoDownload
|
||||||
);
|
);
|
||||||
|
|
||||||
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
||||||
$chain = new Chain($this->getRtmpProcess($video));
|
$process = $this->getRtmpProcess($video);
|
||||||
$chain->add('|', $avconvProc);
|
|
||||||
} else {
|
} else {
|
||||||
$chain = new Chain($this->getCurlProcess($video));
|
$process = $this->getCurlProcess($video);
|
||||||
$chain->add('|', $avconvProc);
|
|
||||||
}
|
}
|
||||||
|
$chain = new Chain($process);
|
||||||
|
$chain->add('|', $avconvProc);
|
||||||
|
|
||||||
return popen($chain->getProcess()->getCommandLine(), 'r');
|
return popen($chain->getProcess()->getCommandLine(), 'r');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue