youtube-dl process needs to inherit environment variables (fixes #145)
This commit is contained in:
parent
6c202e50d4
commit
c53f5c0b31
1 changed files with 1 additions and 0 deletions
|
@ -98,6 +98,7 @@ class VideoDownload
|
||||||
$process = $this->getProcess($arguments);
|
$process = $this->getProcess($arguments);
|
||||||
//This is needed by the openload extractor because it runs PhantomJS
|
//This is needed by the openload extractor because it runs PhantomJS
|
||||||
$process->setEnv(['QT_QPA_PLATFORM'=>'offscreen']);
|
$process->setEnv(['QT_QPA_PLATFORM'=>'offscreen']);
|
||||||
|
$process->inheritEnvironmentVariables();
|
||||||
$process->run();
|
$process->run();
|
||||||
if (!$process->isSuccessful()) {
|
if (!$process->isSuccessful()) {
|
||||||
$errorOutput = trim($process->getErrorOutput());
|
$errorOutput = trim($process->getErrorOutput());
|
||||||
|
|
Loading…
Reference in a new issue