classes/Video.php
public function getUrl()
    {
        // Cache the URLs.
        if (!isset($this->urls)) {
            $this->urls = explode("\n", $this->getProp('get-url'));

            if (empty($this->urls[0])) {
                throw new EmptyUrlException(_('youtube-dl returned an empty URL.'));
            }
        }

        return $this->urls;
    }
public function getUrl()
    {
        // Cache the URLs.
        if (!isset($this->urls)) {
            $this->urls = explode("\n", $this->getProp('get-url'));

            if (empty($this->urls[0])) {
                throw new EmptyUrlException(_('youtube-dl returned an empty URL.'));
            }
        }

        return $this->urls;
    }
public function getUrl ( ) { // Cache the URLs. if ( ! isset ( $ this -> urls ) ) { $ this -> urls = explode ( "\n" , $ this -> getProp ( 'get-url' ) ) ; if ( empty ( $ this -> urls [ 0 ] ) ) { throw new EmptyUrlException ( _ ( 'youtube-dl returned an empty URL.' ) ) ; } } return $ this -> urls ; }
Get URL of video from URL of page.

It generally returns only one URL.
But it can return two URLs when multiple formats are specified
(eg. bestvideo+bestaudio).

@return string[] URLs of video
Get URL of video from URL of page .