From 19b2b5739bf1be5a20e6b3c5cae384278bde75ed Mon Sep 17 00:00:00 2001 From: huangjx Date: Thu, 2 Dec 2021 22:55:32 +0800 Subject: [PATCH] display error message when youtube-dl is not properly installed or has no executable permission --- lib/Controller/YoutubeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/YoutubeController.php b/lib/Controller/YoutubeController.php index 2cc5ae7..122775c 100644 --- a/lib/Controller/YoutubeController.php +++ b/lib/Controller/YoutubeController.php @@ -81,7 +81,7 @@ class YoutubeController extends Controller $yt = $this->youtube; $yt->audioOnly = (bool) $this->request->getParam('audio-only'); if (!$yt->isInstalled()) { - return new JSONResponse($this->installYTD()); + return new JSONResponse(["error" => "Youtube-dl is not installed!"]); } if (Helper::isGetUrlSite($url)) { return new JSONResponse($this->downloadUrlSite($url));