added support for updating yt-dlp binary;moved version info display to admin section

This commit is contained in:
benson
2023-05-05 21:56:16 +08:00
parent 967f05061a
commit 1059d8a4bc
15 changed files with 264 additions and 61 deletions

View File

@@ -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);
}
}