mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Small fix for API Cache
This commit is contained in:
parent
1da8cb148d
commit
4430f5f2ea
1 changed files with 3 additions and 3 deletions
|
@ -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'])
|
||||
|
|
Loading…
Reference in a new issue