forked from Ponysearch/Ponysearch
[enh] move dictionaries, Erowid & IMDb out of general category
The general category is the category that is searched by default. From a privacy standpoint it doesn't make sense to send all general queries to specialized search engines that cannot deal with those queries anyway.
This commit is contained in:
parent
ab90e2ac49
commit
5d74bf3820
5 changed files with 9 additions and 11 deletions
|
@ -19,7 +19,7 @@ about = {
|
||||||
"language": 'de',
|
"language": 'de',
|
||||||
}
|
}
|
||||||
|
|
||||||
categories = ['general', 'dictionaries']
|
categories = ['dictionaries']
|
||||||
paging = True
|
paging = True
|
||||||
|
|
||||||
# search-url
|
# search-url
|
||||||
|
|
|
@ -27,9 +27,7 @@ about = {
|
||||||
"results": 'HTML',
|
"results": 'HTML',
|
||||||
}
|
}
|
||||||
|
|
||||||
categories = [
|
categories = []
|
||||||
'general',
|
|
||||||
]
|
|
||||||
paging = False
|
paging = False
|
||||||
|
|
||||||
# suggestion_url = "https://sg.media-imdb.com/suggestion/{letter}/{query}.json"
|
# suggestion_url = "https://sg.media-imdb.com/suggestion/{letter}/{query}.json"
|
||||||
|
|
|
@ -21,7 +21,7 @@ about = {
|
||||||
"language": 'pl',
|
"language": 'pl',
|
||||||
}
|
}
|
||||||
|
|
||||||
categories = ['general', 'dictionaries']
|
categories = ['dictionaries']
|
||||||
paging = False
|
paging = False
|
||||||
|
|
||||||
URL = 'https://sjp.pwn.pl'
|
URL = 'https://sjp.pwn.pl'
|
||||||
|
|
|
@ -14,7 +14,7 @@ about = {
|
||||||
}
|
}
|
||||||
|
|
||||||
engine_type = 'online_dictionary'
|
engine_type = 'online_dictionary'
|
||||||
categories = ['general', 'dictionaries']
|
categories = ['dictionaries']
|
||||||
url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'
|
url = 'https://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}'
|
||||||
web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
|
web_url = 'https://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}'
|
||||||
weight = 100
|
weight = 100
|
||||||
|
|
|
@ -435,7 +435,7 @@ engines:
|
||||||
url_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/@href
|
url_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/@href
|
||||||
title_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/text()
|
title_xpath: //dl[@class="results-list"]/dt[@class="result-title"]/a/text()
|
||||||
content_xpath: //dl[@class="results-list"]/dd[@class="result-details"]
|
content_xpath: //dl[@class="results-list"]/dd[@class="result-details"]
|
||||||
categories: general
|
categories: []
|
||||||
shortcut: ew
|
shortcut: ew
|
||||||
disabled: true
|
disabled: true
|
||||||
about:
|
about:
|
||||||
|
@ -494,7 +494,7 @@ engines:
|
||||||
content_xpath: //section[contains(@class, "word__defination")]
|
content_xpath: //section[contains(@class, "word__defination")]
|
||||||
first_page_num: 1
|
first_page_num: 1
|
||||||
shortcut: et
|
shortcut: et
|
||||||
categories: [general, dictionaries]
|
categories: [dictionaries]
|
||||||
disabled: true
|
disabled: true
|
||||||
about:
|
about:
|
||||||
website: https://www.etymonline.com/
|
website: https://www.etymonline.com/
|
||||||
|
@ -1419,7 +1419,7 @@ engines:
|
||||||
- name: wiktionary
|
- name: wiktionary
|
||||||
engine: mediawiki
|
engine: mediawiki
|
||||||
shortcut: wt
|
shortcut: wt
|
||||||
categories: [general, dictionaries]
|
categories: [dictionaries]
|
||||||
base_url: "https://{language}.wiktionary.org/"
|
base_url: "https://{language}.wiktionary.org/"
|
||||||
number_of_results: 5
|
number_of_results: 5
|
||||||
search_type: text
|
search_type: text
|
||||||
|
@ -1601,14 +1601,14 @@ engines:
|
||||||
engine: wordnik
|
engine: wordnik
|
||||||
shortcut: def
|
shortcut: def
|
||||||
base_url: https://www.wordnik.com/
|
base_url: https://www.wordnik.com/
|
||||||
categories: [general, dictionaries]
|
categories: [dictionaries]
|
||||||
timeout: 5.0
|
timeout: 5.0
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
- name: woxikon.de synonyme
|
- name: woxikon.de synonyme
|
||||||
engine: xpath
|
engine: xpath
|
||||||
shortcut: woxi
|
shortcut: woxi
|
||||||
categories: [general, dictionaries]
|
categories: [dictionaries]
|
||||||
timeout: 5.0
|
timeout: 5.0
|
||||||
disabled: true
|
disabled: true
|
||||||
search_url: https://synonyme.woxikon.de/synonyme/{query}.php
|
search_url: https://synonyme.woxikon.de/synonyme/{query}.php
|
||||||
|
|
Loading…
Reference in a new issue