瀏覽代碼

[fix] check empty engine language attribute - fixes subtitleseeker

Adam Tauber 9 年之前
父節點
當前提交
42ac2c5b56
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      searx/search.py

+ 1
- 1
searx/search.py 查看文件

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