From 2b0f0a67408fd2c9c94eaa6787adea501cc1e8d4 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Fri, 14 Oct 2016 02:40:33 +0200 Subject: [PATCH] Missing doc comments --- classes/VideoDownload.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 39fa401..1c6e448 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -12,7 +12,16 @@ use Symfony\Component\Process\ProcessBuilder; */ class VideoDownload { + /** + * Config instance + * @var Config + */ private $config; + + /** + * ProcessBuilder instance used to call Python + * @var ProcessBuilder + */ private $procBuilder; /** @@ -48,6 +57,13 @@ class VideoDownload return explode(PHP_EOL, trim($process->getOutput())); } + /** + * Get a property from youtube-dl + * @param string $url URL to parse + * @param string $format Format + * @param string $prop Property + * @return string + */ private function getProp($url, $format = null, $prop = 'dump-json') { $this->procBuilder->setArguments(