feat: New phantomjsDir option
This is used by the openload extractor We also add to update youtube-dl to 2018.01.21 in order for the extractor to work correctly. Fixes #146
This commit is contained in:
parent
4b1db952ba
commit
e36e98e47a
6 changed files with 23 additions and 8 deletions
|
@ -68,6 +68,12 @@ class Config
|
|||
*/
|
||||
public $avconv = 'vendor/bin/ffmpeg';
|
||||
|
||||
/**
|
||||
* Path to the directory that contains the phantomjs binary.
|
||||
* @var string
|
||||
*/
|
||||
public $phantomjsDir = 'vendor/bin/';
|
||||
|
||||
/**
|
||||
* Disable URL rewriting.
|
||||
*
|
||||
|
|
|
@ -99,7 +99,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->setEnv(['QT_QPA_PLATFORM'=>'phantom', 'PATH'=>$this->config->phantomjsDir]);
|
||||
$process->inheritEnvironmentVariables();
|
||||
$process->run();
|
||||
if (!$process->isSuccessful()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue