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:
Pierre Rudloff 2018-05-01 16:28:33 +02:00
parent 38e31c39f1
commit 2b316d4e8d
3 changed files with 18 additions and 1 deletions

View file

@ -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.
*