Missing doc comments

This commit is contained in:
Pierre Rudloff 2016-10-14 02:40:33 +02:00
parent 1be7606aa2
commit 2b0f0a6740

View file

@ -12,7 +12,16 @@ use Symfony\Component\Process\ProcessBuilder;
*/ */
class VideoDownload class VideoDownload
{ {
/**
* Config instance
* @var Config
*/
private $config; private $config;
/**
* ProcessBuilder instance used to call Python
* @var ProcessBuilder
*/
private $procBuilder; private $procBuilder;
/** /**
@ -48,6 +57,13 @@ class VideoDownload
return explode(PHP_EOL, trim($process->getOutput())); 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') private function getProp($url, $format = null, $prop = 'dump-json')
{ {
$this->procBuilder->setArguments( $this->procBuilder->setArguments(