From 5a527373bdd5b15cfb2254ea6b0fd1baa9ed264d Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 6 Feb 2018 19:11:57 +0100 Subject: [PATCH] style: throw is not a function --- classes/VideoDownload.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 475d63a..79b89e4 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -269,7 +269,7 @@ class VideoDownload private function getAvconvProcess(stdClass $video, $audioBitrate, $filetype = 'mp3', $audioOnly = true) { if (!$this->checkCommand([$this->config->avconv, '-version'])) { - throw(new Exception(_('Can\'t find avconv or ffmpeg.'))); + throw new Exception(_('Can\'t find avconv or ffmpeg.')); } if ($video->protocol == 'rtmp') { @@ -325,7 +325,7 @@ 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.'))); + throw new Exception(_('Conversion of M3U8 files is not supported.')); } $avconvProc = $this->getAvconvProcess($video, $this->config->audioBitrate); @@ -352,7 +352,7 @@ class VideoDownload public function getM3uStream(stdClass $video) { if (!$this->checkCommand([$this->config->avconv, '-version'])) { - throw(new Exception(_('Can\'t find avconv or ffmpeg.'))); + throw new Exception(_('Can\'t find avconv or ffmpeg.')); } $process = new Process( @@ -484,7 +484,7 @@ 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.'))); + throw new Exception(_('Conversion of M3U8 files is not supported.')); } $avconvProc = $this->getAvconvProcess($video, $audioBitrate, $filetype, false);