From ecba860c5a0e00750508f578532ddb6be7ab8f51 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Thu, 14 Apr 2016 12:48:32 +0200 Subject: [PATCH] Use curl in silent mode Always append curl custom parameters at the end --- controllers/FrontController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index ab3b5aa..7622ce9 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -184,12 +184,13 @@ class FrontController $chain = new Chain( ProcessBuilder::create( array_merge( - array('curl'), - $this->config->curl_params, array( + 'curl', + '--silent', '--user-agent', $video->http_headers->{'User-Agent'}, $video->url - ) + ), + $this->config->curl_params ) ) );