From 0bc5120751f69c2b2dabc39c3a0df6d337958bcb Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Tue, 5 Dec 2017 21:12:59 +0100 Subject: [PATCH] Cleaner way to add a pipe --- classes/VideoDownload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/VideoDownload.php b/classes/VideoDownload.php index 7e847e1..f711341 100644 --- a/classes/VideoDownload.php +++ b/classes/VideoDownload.php @@ -309,7 +309,7 @@ class VideoDownload if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') { $process = $this->getRtmpProcess($video); $chain = new Chain($process); - $chain->add('|', $this->getAvconvMp3Process('-')); + $chain->pipe($this->getAvconvMp3Process('-')); $stream = popen($chain->getProcess()->getCommandLine(), 'r'); } else {