added section for displaying aria2 and yt-dlp version info

This commit is contained in:
benson
2023-05-01 13:53:38 +08:00
parent 16e1fd47a8
commit b32971a55f
5 changed files with 76 additions and 25 deletions

View File

@@ -265,4 +265,14 @@ class Ytdl
{
return "https://github.com/shiningw/ncdownloader-bin/raw/master/yt-dlp";
}
public function version()
{
$process = new Process([$this->bin, '--version']);
$process->run();
if ($process->isSuccessful()) {
return $process->getOutput();
}
return false;
}
}