mirror of
https://github.com/linuxserver/Heimdall-Apps.git
synced 2026-01-15 00:52:03 +08:00
16 lines
407 B
PHP
16 lines
407 B
PHP
<?php
|
|
|
|
namespace App\SupportedApps\Whoogle;
|
|
|
|
class Whoogle 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);
|
|
}
|
|
}
|