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

@@ -226,4 +226,14 @@ class MainController extends Controller
$counter = $this->counters->getCounters();
return new JSONResponse(['counter' => $counter]);
}
public function ytdlCheck()
{
$resp = $this->ytdl->check();
return new JSONResponse($resp);
}
public function ytdlUPdate(){
$resp = $this->ytdl->update();
return new JSONResponse($resp);
}
}