From eab4b1f91412bb79b55b4146ff16b2dbe23d1548 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 21 Jun 2020 12:15:45 +0200 Subject: [PATCH] Error when trying to convert a remux format --- classes/Downloader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Downloader.php b/classes/Downloader.php index 6df306e..e9555f2 100644 --- a/classes/Downloader.php +++ b/classes/Downloader.php @@ -405,6 +405,10 @@ class Downloader throw new InvalidProtocolConversionException($video->protocol); } + if (count($video->getUrl()) > 1) { + throw new RemuxException('Can not convert and remux at the same time.'); + } + $avconvProc = $this->getAvconvProcess($video, $audioBitrate, $filetype, $audioOnly, $from, $to); $stream = popen($avconvProc->getCommandLine(), 'r');