mirror of
https://github.com/Rudloff/alltube.git
synced 2024-06-27 07:35:08 +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);
|
$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 New Issue
Block a user