From c53f5c0b31c2315315b371bf35b6fb8531b60511 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 23 Dec 2017 17:41:39 +0100 Subject: [PATCH] youtube-dl process needs to inherit environment variables (fixes #145) --- classes/VideoDownload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 0379eaa..e72789c 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -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());