From 09e372175f023026f5a0e1b48c37ef155fe447b5 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 4 Apr 2020 17:52:55 +0200 Subject: [PATCH] Fall back to "best" for audio conversion when "bestaudio" is not available (fixes #269) --- controllers/DownloadController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/DownloadController.php b/controllers/DownloadController.php index 7862b6c..e9e2fca 100644 --- a/controllers/DownloadController.php +++ b/controllers/DownloadController.php @@ -130,7 +130,7 @@ class DownloadController extends BaseController return $frontController->password($request, $response); } catch (Exception $e) { // If MP3 is not available, we convert it. - $this->video = $this->video->withFormat('bestaudio'); + $this->video = $this->video->withFormat('bestaudio/best'); return $this->getConvertedAudioResponse($request, $response); }