diff options
Diffstat (limited to 'searx/engines/translated.py')
-rw-r--r-- | searx/engines/translated.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/engines/translated.py b/searx/engines/translated.py index e78db0d8e..5c7b17033 100644 --- a/searx/engines/translated.py +++ b/searx/engines/translated.py @@ -9,8 +9,12 @@ @parse url, title, content """ import re +from sys import version_info from searx.utils import is_valid_lang +if version_info[0] == 3: + unicode = str + categories = ['general'] url = u'http://api.mymemory.translated.net/get?q={query}&langpair={from_lang}|{to_lang}{key}' web_url = u'http://mymemory.translated.net/en/{from_lang}/{to_lang}/{query}' |