added libreY/X fix for pirate bay
This commit is contained in:
parent
8e5f8c8a10
commit
7d1d2cba67
7 changed files with 325 additions and 16 deletions
10
text.go
10
text.go
|
@ -135,8 +135,8 @@ func fetchAndCacheTextResults(query, safe, lang string, page, resultsPerPage int
|
|||
Source string
|
||||
}{
|
||||
{PerformGoogleTextSearch, "Google"},
|
||||
{PerformDuckDuckGoTextSearch, "DuckDuckGo"},
|
||||
// {PerformQwantTextSearch, "Qwant"},
|
||||
{PerformLibreXTextSearch, "LibreX"},
|
||||
// {PerformSearXNGTextSearch, "SearXNG"},
|
||||
}
|
||||
|
||||
wg.Add(len(searchFuncs))
|
||||
|
@ -180,10 +180,10 @@ func sourceOrder(source string) int {
|
|||
switch source {
|
||||
case "Google":
|
||||
return 1
|
||||
case "DuckDuckGo":
|
||||
case "LibreX":
|
||||
return 2
|
||||
// case "Qwant":
|
||||
// return 3
|
||||
case "SearchXNG":
|
||||
return 3
|
||||
default:
|
||||
return 4
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue