improved search module
This commit is contained in:
@@ -27,7 +27,6 @@ class torrentSearch
|
||||
return ['message', $e->getMessage()];
|
||||
}
|
||||
$data = $siteInst->search($keyword);
|
||||
$this->addAction($data);
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -40,14 +39,4 @@ class torrentSearch
|
||||
}
|
||||
}
|
||||
|
||||
private function addAction(&$data)
|
||||
{
|
||||
foreach ($data as $key => &$value) {
|
||||
if (!$value) {
|
||||
continue;
|
||||
}
|
||||
$value['actions'] = [["name" => 'download', 'path' => '/index.php/apps/ncdownloader/new'], ['name' => 'clipboard']];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user