An attempt to obtain a functional version with the various fixes implemented so far.
This commit is contained in:
@@ -11,6 +11,7 @@ use OCP\AppFramework\Http\JSONResponse;
|
||||
use OCP\Files\IRootFolder;
|
||||
use OCP\IL10N;
|
||||
use OCP\IRequest;
|
||||
use OC_Util;
|
||||
use \OC\Files\Filesystem;
|
||||
|
||||
class Aria2Controller extends Controller
|
||||
@@ -33,9 +34,9 @@ class Aria2Controller extends Controller
|
||||
$this->uid = $UserId;
|
||||
$this->l10n = $IL10N;
|
||||
$this->rootFolder = $rootFolder;
|
||||
$this->urlGenerator = \OC::$server->get(\OCP\IURLGenerator::class);
|
||||
$this->urlGenerator = \OC::$server->getURLGenerator();
|
||||
$this->downloadDir = Helper::getDownloadDir();
|
||||
\OC_Util::setupFS();
|
||||
OC_Util::setupFS();
|
||||
//$this->config = \OC::$server->getAppConfig();
|
||||
$this->aria2 = $aria2;
|
||||
$this->aria2->init();
|
||||
|
||||
Reference in New Issue
Block a user