From f6e3ee1ef2d02eda07c7c941a9849aa5bd53354e Mon Sep 17 00:00:00 2001 From: echel0n Date: Mon, 10 Mar 2014 17:09:21 -0700 Subject: [PATCH] quick change of code to the indexerApi --- sickbeard/indexers/indexer_api.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sickbeard/indexers/indexer_api.py b/sickbeard/indexers/indexer_api.py index b2cf341d..e909ee9e 100644 --- a/sickbeard/indexers/indexer_api.py +++ b/sickbeard/indexers/indexer_api.py @@ -25,7 +25,13 @@ class indexerApi: new_type = type(cls.__name__ + '_wrapped', (indexerApi, cls), {}) return object.__new__(new_type) - def __init__(self, indexer=None, language=None, custom_ui=None, *args, **kwargs): + def __init__(self, indexer=None, language=None, *args, **kwargs): + if indexer is not None: + self.name = indexer + self._wrapped = eval(indexer)(*args, **kwargs) + else: + self.name = "Indexer" + self.config = {} self.config['valid_languages'] = [ @@ -48,12 +54,6 @@ class indexerApi: else: self.config['language'] = language - if indexer is not None: - self.name = indexer - self._wrapped = eval(indexer)(custom_ui=custom_ui, language=language, *args, **kwargs) - else: - self.name = "Indexer" - def __getattr__(self, attr): return getattr(self._wrapped, attr)