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

@ -327,6 +327,8 @@ class VideoDownload
$video = $this->getJSON($url, $format, $password);
if (in_array($video->protocol, ['m3u8', 'm3u8_native'])) {
throw new Exception(_('Conversion of M3U8 files is not supported.'));
} elseif ($video->protocol == 'http_dash_segments') {
throw new Exception(_('Conversion of DASH segments is not supported.'));
}
$avconvProc = $this->getAvconvProcess($video, $this->config->audioBitrate);