classes/Video.php
private function getProp($prop = 'dump-json')
    {
        $arguments = ['--'.$prop];

        if (isset($this->webpageUrl)) {
            $arguments[] = $this->webpageUrl;
        }
        if (isset($this->requestedFormat)) {
            $arguments[] = '-f';
            $arguments[] = $this->requestedFormat;
        }
        if (isset($this->password)) {
            $arguments[] = '--video-password';
            $arguments[] = $this->password;
        }

        return $this::callYoutubedl($arguments);
    }
private function getProp($prop = 'dump-json')
    {
        $arguments = ['--'.$prop];

        if (isset($this->webpageUrl)) {
            $arguments[] = $this->webpageUrl;
        }
        if (isset($this->requestedFormat)) {
            $arguments[] = '-f';
            $arguments[] = $this->requestedFormat;
        }
        if (isset($this->password)) {
            $arguments[] = '--video-password';
            $arguments[] = $this->password;
        }

        return $this::callYoutubedl($arguments);
    }
private function getProp ( $ prop = 'dump-json' ) { $ arguments = [ '--' . $ prop ] ; if ( isset ( $ this -> webpageUrl ) ) { $ arguments [ ] = $ this -> webpageUrl ; } if ( isset ( $ this -> requestedFormat ) ) { $ arguments [ ] = '-f' ; $ arguments [ ] = $ this -> requestedFormat ; } if ( isset ( $ this -> password ) ) { $ arguments [ ] = '--video-password' ; $ arguments [ ] = $ this -> password ; } return $ this :: callYoutubedl ( $ arguments ) ; }
Get a property from youtube-dl.

@param string $prop Property

@return string
Get a property from youtube - dl .