From 42ac2c5b56607a8d061063e77d39b2d467ad9f9c Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 25 Aug 2015 22:02:18 +0200 Subject: [PATCH] [fix] check empty engine language attribute - fixes subtitleseeker --- searx/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/search.py b/searx/search.py index 1bf05f7f9..ca24581ac 100644 --- a/searx/search.py +++ b/searx/search.py @@ -478,7 +478,7 @@ class Search(object): request_params['started'] = time() request_params['pageno'] = self.pageno - if hasattr(engine, 'language'): + if hasattr(engine, 'language') and engine.language: request_params['language'] = engine.language else: request_params['language'] = self.lang