From 13fd80218028e867fbd6782d3e6c3041458ea968 Mon Sep 17 00:00:00 2001 From: benson Date: Wed, 26 Apr 2023 14:30:15 +0800 Subject: [PATCH] removed unwarranted check --- lib/Ytdl/Ytdl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ytdl/Ytdl.php b/lib/Ytdl/Ytdl.php index 01ea91c..3f01b4a 100644 --- a/lib/Ytdl/Ytdl.php +++ b/lib/Ytdl/Ytdl.php @@ -29,7 +29,7 @@ class Ytdl public function init(array $options) { extract($options); - if (isset($binary) && @is_executable($binary)) { + if (!empty($binary)) { $this->bin = $binary; } else { $this->bin = __DIR__ . "/../../bin/yt-dlp"; //Helper::findBinaryPath('ytdl', __DIR__ . "/../../bin/yt-dlp");