diff --git a/sickbeard/indexers/indexer_api.py b/sickbeard/indexers/indexer_api.py index 33009f80..86b67d21 100644 --- a/sickbeard/indexers/indexer_api.py +++ b/sickbeard/indexers/indexer_api.py @@ -17,7 +17,7 @@ # along with Sick Beard. If not, see . import os -#import sickbeard +import sickbeard import generic from lib.tvdb_api.tvdb_api import Tvdb @@ -31,8 +31,8 @@ class indexerApi(generic.GenericIndexer): if indexer: self.config['api_parms'].update(**kwargs) - #if sickbeard.CACHE_DIR: - # self.api_parms['cache'] = os.path.join(sickbeard.CACHE_DIR, indexer) + if sickbeard.CACHE_DIR: + self.config['api_parms']['cache'] = os.path.join(sickbeard.CACHE_DIR, indexer) # wrap the indexer API object and return it back self._wrapped = eval(indexer)(*args, **self.config['api_parms'])