ajout heimdall
This commit is contained in:
12
heimdall/config/www/SupportedApps/Jackett/Jackett.php
Executable file
12
heimdall/config/www/SupportedApps/Jackett/Jackett.php
Executable file
@@ -0,0 +1,12 @@
|
||||
<?php namespace App\SupportedApps\Jackett;
|
||||
|
||||
class Jackett 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user