added executable permissions if youtube-dl or aria2c doesn't have it
This commit is contained in:
@@ -33,6 +33,9 @@ class Youtube
|
||||
} else {
|
||||
$this->bin = Helper::findBinaryPath('youtube-dl', __DIR__ . "/../../bin/youtube-dl");
|
||||
}
|
||||
if ($this->isInstalled() && !$this->isExecutable()) {
|
||||
chmod($this->bin, 755);
|
||||
}
|
||||
$this->setDownloadDir($downloadDir);
|
||||
if (!empty($settings)) {
|
||||
foreach ($settings as $key => $value) {
|
||||
|
||||
Reference in New Issue
Block a user