Refactor listExtractors()

This commit is contained in:
Pierre Rudloff 2016-10-27 01:22:30 +02:00
parent bd26756246
commit d74ec5d1c4

View file

@ -57,15 +57,7 @@ class VideoDownload
* */
public function listExtractors()
{
$this->procBuilder->setArguments(
[
'--list-extractors',
]
);
$process = $this->procBuilder->getProcess();
$process->run();
return explode(PHP_EOL, trim($process->getOutput()));
return explode(PHP_EOL, trim($this->getProp($url, null, 'list-extractors')));
}
/**