Small fix for API Cache

This commit is contained in:
echel0n 2014-03-12 21:09:36 -07:00
parent 1da8cb148d
commit 4430f5f2ea
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
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'])