[fix] only 1-word search triggers the engine
commit22bd39fd42e469339ff1ccac9f8c16cc00f52211
authorpotato <mail@crazypotato.tk>
dateTue 6 Sep 2016, 15:07 (10 years ago)
parent7bf1013
searx/engines/dictzone.py+1−1
@@ -9,7 +9,7 @@ categories = ['general']
99url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
1010weight = 100
1111
12−parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.+)', re.I)
12+parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
1313results_xpath = './/table[@id="r"]/tr'
1414
1515