ajout heimdall
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php namespace App\SupportedApps\SearxMetasearchEngine;
|
||||
|
||||
class SearxMetasearchEngine extends \App\SupportedApps implements \App\SearchInterface {
|
||||
public $type = 'external'; // Whether to go to the external site or display results locally
|
||||
public function getResults($query, $provider)
|
||||
{
|
||||
$url = rtrim($provider->url, '/');
|
||||
$q = urlencode($query);
|
||||
return redirect($url.'/search?q='.$q);
|
||||
}
|
||||
}
|
||||
10
heimdall/config/www/SupportedApps/SearxMetasearchEngine/app.json
Executable file
10
heimdall/config/www/SupportedApps/SearxMetasearchEngine/app.json
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"appid": "d3f896182b5c10b07918e295fce8c5aef054d266",
|
||||
"name": "Searx Metasearch Engine",
|
||||
"website": "https://searx.me",
|
||||
"license": "https://github.com/asciimoo/searx/blob/master/LICENSE",
|
||||
"description": "A privacy-respecting, hackable metasearch engine.",
|
||||
"enhanced": false,
|
||||
"tile_background": "dark",
|
||||
"icon": "searxmetasearchengine.png"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
Reference in New Issue
Block a user