Display error when trying to convert a M3U8 file (fixes #83)

This commit is contained in:
Pierre Rudloff 2016-12-27 00:01:42 +01:00
parent 0ba030a981
commit 5aad3abc5d
2 changed files with 14 additions and 0 deletions

View file

@ -265,6 +265,9 @@ 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.'));
}
//Vimeo needs a correct user-agent
ini_set(