cleaning up

This commit is contained in:
huangjx
2021-09-17 14:41:15 +08:00
parent de2afbb0ef
commit 2497fdc535
2 changed files with 4 additions and 8 deletions

View File

@@ -2,8 +2,8 @@
namespace OCA\NCDownloader\Command;
use OCA\NCDownloader\Search\torrentSearch;
use OCA\NCDownloader\Tools\Aria2;
use OCA\NCDownloader\Tools\Youtube;
use OCA\NCDownloader\Tools\DBConn;
use OC\Core\Command\Base;
use Symfony\Component\Console\Input\InputArgument;
@@ -52,6 +52,9 @@ class Aria2Command extends base
if (!$action = $input->getArgument('action')) {
$action = 'start';
}
$search = new torrentSearch();
$search->setSite('bitSearch');
$data = $search->go('test');
$gid = $input->getOption('gid');
$path = $input->getOption('path');
$numFile = $input->getOption('number');

View File

@@ -13,7 +13,6 @@ use OCP\AppFramework\Http\TemplateResponse;
use OCP\IL10N;
use OCP\IRequest;
use OC_Util;
use \OCP\AppFramework\Http\StrictContentSecurityPolicy;
class MainController extends Controller
{
@@ -58,12 +57,6 @@ class MainController extends Controller
$response = new TemplateResponse($this->appName, 'Index', $params);
$csp = new StrictContentSecurityPolicy();
$csp->allowEvalScript();
$csp->allowInlineStyle();
$response->setContentSecurityPolicy($csp);
return $response;
}