fix: Throw an exception when trying to download DASH with ffmpeg
Fallback to default format when we can't download bestaudio Fixes #165
This commit is contained in:
parent
38e31c39f1
commit
2b316d4e8d
3 changed files with 18 additions and 1 deletions
|
@ -406,6 +406,17 @@ class VideoDownloadTest extends TestCase
|
|||
$this->download->getAudioStream($url, $format);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test getAudioStream function with a DASH URL.
|
||||
*
|
||||
* @return void
|
||||
* @expectedException Exception
|
||||
*/
|
||||
public function testGetAudioStreamDashError()
|
||||
{
|
||||
$this->download->getAudioStream('https://vimeo.com/251997032', 'bestaudio/best');
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert that a stream is valid.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue