mirror of
https://github.com/Rudloff/alltube.git
synced 2024-06-22 07:06:40 +02:00
youtube-dl process needs to inherit environment variables (fixes #145)
This commit is contained in:
parent
6c202e50d4
commit
c53f5c0b31
|
@ -98,6 +98,7 @@ class VideoDownload
|
|||
$process = $this->getProcess($arguments);
|
||||
//This is needed by the openload extractor because it runs PhantomJS
|
||||
$process->setEnv(['QT_QPA_PLATFORM'=>'offscreen']);
|
||||
$process->inheritEnvironmentVariables();
|
||||
$process->run();
|
||||
if (!$process->isSuccessful()) {
|
||||
$errorOutput = trim($process->getErrorOutput());
|
||||
|
|
Loading…
Reference in New Issue
Block a user