removed unwarranted check

This commit is contained in:
benson
2023-04-26 14:30:15 +08:00
parent 8937ac9404
commit 13fd802180

View File

@@ -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");