Fix PhantomJS crash with the openload extractor (see #132)

This commit is contained in:
Pierre Rudloff 2017-11-01 23:02:19 +01:00
parent 76f3ecfec8
commit d3988503d5

View file

@ -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()) {