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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue