1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-14 08:40:11 +01:00

Merge branch 'master' into searchpy2

This commit is contained in:
Alexandre Flament 2016-11-06 09:44:07 +01:00 committed by GitHub
commit 219f047bf3
2 changed files with 12 additions and 1 deletions

View File

@ -323,7 +323,8 @@ class Search(object):
engine = engines[selected_engine['name']]
# skip suspended engines
if engine.suspend_end_time and engine.suspend_end_time <= time():
if engine.suspend_end_time >= time():
logger.debug('Engine currently suspended: %s', selected_engine['name'])
continue
# if paging is not supported, skip

View File

@ -313,6 +313,16 @@ engines:
timeout : 4.0
disabled : True
- name : lobste.rs
engine : xpath
search_url : https://lobste.rs/search?utf8=%E2%9C%93&q={query}&what=stories&order=relevance
results_xpath : //li[contains(@class, "story")]
url_xpath : .//span[@class="link"]/a/@href
title_xpath : .//span[@class="link"]/a
content_xpath : .//a[@class="domain"]
categories : it
shortcut : lo
- name : microsoft academic
engine : json_engine
paging : True