fixed bugs introduced in a5c3785ed8d6a35868bc169f07e40e889087fd2e
This commit is contained in:
@@ -37,13 +37,17 @@ class Aria2
|
||||
);
|
||||
//turn keys in $options into variables
|
||||
extract($options);
|
||||
if (isset($binary) && @is_executable($binary)) {
|
||||
$this->bin = $binary;
|
||||
} else {
|
||||
$this->bin = Helper::findBinaryPath('aria2c');
|
||||
}
|
||||
$this->setDownloadDir($dir);
|
||||
if (!empty($settings)) {
|
||||
foreach ($settings as $key => $value) {
|
||||
$this->setOption($key, $value);
|
||||
}
|
||||
}
|
||||
$this->bin = Helper::findBinaryPath('aria2c');
|
||||
$this->php = Helper::findBinaryPath('php');
|
||||
$this->completeHook = $completeHook;
|
||||
$this->rpcUrl = sprintf("http://%s:%s/jsonrpc", $host, $port);
|
||||
|
||||
Reference in New Issue
Block a user