added support for updating yt-dlp binary;moved version info display to admin section
This commit is contained in:
@@ -412,8 +412,14 @@ class Aria2
|
||||
{
|
||||
return $this->bin;
|
||||
}
|
||||
public function version(){
|
||||
public function version()
|
||||
{
|
||||
$resp = $this->getVersion();
|
||||
return $resp['result']['version'] ?? null;
|
||||
}
|
||||
public function install()
|
||||
{
|
||||
$url = "https://github.com/shiningw/ncdownloader-bin/raw/master/aria2c";
|
||||
Helper::Download($url, $this->bin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user