From d74ec5d1c49c387beedf3cb6923e8905fc6b9d69 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 27 Oct 2016 01:22:30 +0200 Subject: [PATCH] Refactor listExtractors() --- classes/VideoDownload.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index e727414..995f44b 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -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'))); } /**