From d3988503d5543b09df58f325b490b3f7e9b2e7b4 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 1 Nov 2017 23:02:19 +0100 Subject: [PATCH] Fix PhantomJS crash with the openload extractor (see #132) --- classes/VideoDownload.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index dfbbdb0..3140d08 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -86,6 +86,10 @@ class VideoDownload $this->procBuilder->add('--video-password'); $this->procBuilder->add($password); } + + //This is needed by the openload extractor because it runs PhantomJS + $this->procBuilder->setEnv('QT_QPA_PLATFORM', 'offscreen'); + $process = $this->procBuilder->getProcess(); $process->run(); if (!$process->isSuccessful()) {