mirror of
https://github.com/searxng/searxng.git
synced 2026-07-31 20:31:31 +00:00
Compare commits
2 Commits
f45d4145e6
...
c6c6d3027c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6c6d3027c | ||
|
|
d19eb3903e |
@@ -155,7 +155,7 @@ class ExternalBangParser(QueryPartParser):
|
||||
return raw_value.startswith('!!') and len(raw_value) > 2
|
||||
|
||||
def __call__(self, raw_value):
|
||||
value = raw_value[2:]
|
||||
value = raw_value[2:].lower()
|
||||
found, bang_ac_list = self._parse(value) if len(value) > 0 else (False, [])
|
||||
if self.enable_autocomplete:
|
||||
self._autocomplete(bang_ac_list)
|
||||
@@ -183,7 +183,7 @@ class BangParser(QueryPartParser):
|
||||
return raw_value[0] == '!' and (len(raw_value) < 2 or raw_value[1] != '!')
|
||||
|
||||
def __call__(self, raw_value):
|
||||
value = raw_value[1:].replace('-', ' ').replace('_', ' ')
|
||||
value = raw_value[1:].replace('-', ' ').replace('_', ' ').lower()
|
||||
found = self._parse(value) if len(value) > 0 else False
|
||||
if found and raw_value[0] == '!':
|
||||
self.raw_text_query.specific = True
|
||||
|
||||
@@ -711,26 +711,6 @@ engines:
|
||||
search_type: news
|
||||
disabled: true
|
||||
|
||||
- name: curlie
|
||||
engine: xpath
|
||||
shortcut: cl
|
||||
categories: general
|
||||
disabled: true
|
||||
paging: true
|
||||
lang_all: ''
|
||||
search_url: https://curlie.org/search?q={query}&lang={lang}&start={pageno}&stime=92452189
|
||||
page_size: 20
|
||||
results_xpath: //div[@id="site-list-content"]/div[@class="site-item"]
|
||||
url_xpath: ./div[@class="title-and-desc"]/a/@href
|
||||
title_xpath: ./div[@class="title-and-desc"]/a/div
|
||||
content_xpath: ./div[@class="title-and-desc"]/div[@class="site-descr"]
|
||||
about:
|
||||
website: https://curlie.org/
|
||||
wikidata_id: Q60715723
|
||||
use_official_api: false
|
||||
require_api_key: false
|
||||
results: HTML
|
||||
|
||||
- name: currency
|
||||
engine: currency_convert
|
||||
categories: general
|
||||
|
||||
Reference in New Issue
Block a user