[fix] check empty engine language attribute - fixes subtitleseeker

This commit is contained in:
Adam Tauber 2015-08-25 22:02:18 +02:00
parent 28493d41a3
commit 42ac2c5b56

View file

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