1
0
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:
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);
//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());