Skip to content

Commit

Permalink
removed unwarranted check
Browse files Browse the repository at this point in the history
  • Loading branch information
shiningw committed Apr 26, 2023
1 parent 8937ac9 commit 13fd802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ytdl/Ytdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(array $options)
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");
Expand Down

0 comments on commit 13fd802

Please sign in to comment.