Remove dependency on curl (fixes #105)
avconv/ffmpeg now downloads the video directly when converting
This commit is contained in:
parent
b9aad26803
commit
b80b9c7b2e
7 changed files with 34 additions and 72 deletions
|
@ -45,7 +45,6 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
|
|||
public function testGetInstance()
|
||||
{
|
||||
$this->assertEquals($this->config->convert, false);
|
||||
$this->assertInternalType('array', $this->config->curl_params);
|
||||
$this->assertInternalType('array', $this->config->params);
|
||||
$this->assertInternalType('string', $this->config->youtubedl);
|
||||
$this->assertInternalType('string', $this->config->python);
|
||||
|
|
|
@ -350,11 +350,11 @@ class VideoDownloadTest extends \PHPUnit_Framework_TestCase
|
|||
*
|
||||
* @return void
|
||||
* @expectedException Exception
|
||||
* @dataProvider urlProvider
|
||||
* @dataProvider rtmpUrlProvider
|
||||
*/
|
||||
public function testGetAudioStreamCurlError($url, $format)
|
||||
public function testGetAudioStreamRtmpError($url, $format)
|
||||
{
|
||||
$download = new VideoDownload(new Config(['curl'=>'foobar', 'rtmpdump'=>'foobar']));
|
||||
$download = new VideoDownload(new Config(['rtmpdump'=>'foobar']));
|
||||
$download->getAudioStream($url, $format);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue