Browse Source

[fix] check empty engine language attribute - fixes subtitleseeker

Adam Tauber 9 years ago
parent
commit
42ac2c5b56
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py View File

478
             request_params['started'] = time()
478
             request_params['started'] = time()
479
             request_params['pageno'] = self.pageno
479
             request_params['pageno'] = self.pageno
480
 
480
 
481
-            if hasattr(engine, 'language'):
481
+            if hasattr(engine, 'language') and engine.language:
482
                 request_params['language'] = engine.language
482
                 request_params['language'] = engine.language
483
             else:
483
             else:
484
                 request_params['language'] = self.lang
484
                 request_params['language'] = self.lang