youtube-dl process needs to inherit environment variables (fixes #145)

This commit is contained in:
Pierre Rudloff 2017-12-23 17:41:39 +01:00
parent 6c202e50d4
commit c53f5c0b31

View file

@ -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());