bundled youtube-dl binary;

This commit is contained in:
huangjx
2021-10-22 22:21:27 +08:00
parent 03d1722c07
commit e421fced4f
3 changed files with 2 additions and 3 deletions

View File

@@ -30,9 +30,8 @@ class Youtube
if (isset($binary) && @is_executable($binary)) {
$this->bin = $binary;
} else {
$this->bin = Helper::findBinaryPath('youtube-dl');
$this->bin = Helper::findBinaryPath('youtube-dl',__DIR__."/../../bin/youtube-dl");
}
$this->setDownloadDir($downloadDir);
if (!empty($settings)) {
foreach ($settings as $key => $value) {