summaryrefslogtreecommitdiff
path: root/searx/query.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2015-01-11 01:20:46 +0100
committerAdam Tauber <asciimoo@gmail.com>2015-01-11 01:20:46 +0100
commit8ef709ea1f86413d04051eea0876c20a48c8ae90 (patch)
treebb08e23f6760320c180282c6b90010ec60199c64 /searx/query.py
parentaff33ea8969a477e9e02ef4be00872685ba1ca72 (diff)
parent9109686c4e7208e0c228afcc8dfe5e20e24d598d (diff)
Merge pull request #170 from pointhi/little_fixes
Little fixes, add searx-autocompletion, more informations about torrents
Diffstat (limited to 'searx/query.py')
-rw-r--r--searx/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/query.py b/searx/query.py
index 9f711e982..cd2b3f423 100644
--- a/searx/query.py
+++ b/searx/query.py
@@ -77,7 +77,7 @@ class Query(object):
if lang == lang_id\
or lang_id.startswith(lang)\
or lang == lang_name\
- or lang == country:
+ or lang.replace('_', ' ') == country:
parse_next = True
self.languages.append(lang)
break