[fix] only 1-word search triggers the engine

This commit is contained in:
potato 2016-09-06 15:07:47 +02:00
parent 7bf1013c15
commit 22bd39fd42

View file

@ -9,7 +9,7 @@ categories = ['general']
url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}' url = 'http://dictzone.com/{from_lang}-{to_lang}-dictionary/{query}'
weight = 100 weight = 100
parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) (.+)', re.I) parser_re = re.compile(u'.*?([a-z]+)-([a-z]+) ([^ ]+)$', re.I)
results_xpath = './/table[@id="r"]/tr' results_xpath = './/table[@id="r"]/tr'