This commit is contained in:
Pierre Rudloff 2017-04-25 00:41:49 +02:00
parent e6bbe54474
commit b4be0ead6a
2 changed files with 6 additions and 5 deletions

View file

@ -149,7 +149,7 @@ class VideoDownload
}
/**
* Get filename of video with the specified extension
* Get filename of video with the specified extension.
*
* @param string $extension New file extension
* @param string $url URL of page
@ -348,6 +348,7 @@ class VideoDownload
'pipe:1',
]
);
return popen($procBuilder->getProcess()->getCommandLine(), 'r');
}

View file

@ -372,8 +372,8 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
$result = $controller->redirect(
$this->request->withQueryParams(
[
'url'=>'https://www.youtube.com/watch?v=M7IpKCZ47pU',
'format'=>'bestvideo+bestaudio'
'url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU',
'format'=> 'bestvideo+bestaudio',
]
),
$this->response
@ -391,8 +391,8 @@ class FrontControllerTest extends \PHPUnit_Framework_TestCase
$result = $this->controller->redirect(
$this->request->withQueryParams(
[
'url'=>'https://www.youtube.com/watch?v=M7IpKCZ47pU',
'format'=>'bestvideo+bestaudio'
'url' => 'https://www.youtube.com/watch?v=M7IpKCZ47pU',
'format'=> 'bestvideo+bestaudio',
]
),
$this->response