fixed #121;
This commit is contained in:
@@ -438,7 +438,7 @@ class Helper
|
||||
public static function getYtdlConfig($uid = null): array
|
||||
{
|
||||
$config = [
|
||||
'binary' => self::getSettings("ncd_yt_binary", null, Settings::TYPE['SYSTEM']),
|
||||
'binary' => self::getAdminSettings("ncd_yt_binary"),
|
||||
'downloadDir' => Helper::getRealDownloadDir(),
|
||||
'settings' => self::newSettings()->getYtdl(),
|
||||
];
|
||||
|
||||
@@ -29,7 +29,7 @@ class Ytdl
|
||||
public function init(array $options)
|
||||
{
|
||||
extract($options);
|
||||
if (isset($binary) && $this->isExecutable($binary)) {
|
||||
if (isset($binary) && @is_executable($binary)) {
|
||||
$this->bin = $binary;
|
||||
} else {
|
||||
$this->bin = __DIR__ . "/../../bin/yt-dlp"; //Helper::findBinaryPath('ytdl', __DIR__ . "/../../bin/yt-dlp");
|
||||
|
||||
Reference in New Issue
Block a user