Fix PhantomJS crash with the openload extractor (see #132)
This commit is contained in:
parent
76f3ecfec8
commit
d3988503d5
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ class VideoDownload
|
||||||
$this->procBuilder->add('--video-password');
|
$this->procBuilder->add('--video-password');
|
||||||
$this->procBuilder->add($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 = $this->procBuilder->getProcess();
|
||||||
$process->run();
|
$process->run();
|
||||||
if (!$process->isSuccessful()) {
|
if (!$process->isSuccessful()) {
|
||||||
|
|
Loading…
Reference in a new issue