From 59291b4b8c58f358c5a2b2c8e5574beab6e5e2b2 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Wed, 4 May 2016 16:26:47 +0200 Subject: [PATCH] Use bestaudio (if available) to speedup conversions --- controllers/FrontController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 5264f96..15e00bb 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -122,7 +122,7 @@ class FrontController $url = $this->download->getURL($params["url"], 'mp3[protocol^=http]'); return $response->withRedirect($url); } catch (\Exception $e) { - $video = $this->download->getJSON($params["url"], 'best'); + $video = $this->download->getJSON($params["url"], 'bestaudio/best'); $avconvProc = ProcessBuilder::create( array(