mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -05:00
Small fix for API Cache
This commit is contained in:
parent
1da8cb148d
commit
4430f5f2ea
@ -17,7 +17,7 @@
|
|||||||
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
|
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import os
|
import os
|
||||||
|
|
||||||
#import sickbeard
|
import sickbeard
|
||||||
import generic
|
import generic
|
||||||
|
|
||||||
from lib.tvdb_api.tvdb_api import Tvdb
|
from lib.tvdb_api.tvdb_api import Tvdb
|
||||||
@ -31,8 +31,8 @@ class indexerApi(generic.GenericIndexer):
|
|||||||
if indexer:
|
if indexer:
|
||||||
self.config['api_parms'].update(**kwargs)
|
self.config['api_parms'].update(**kwargs)
|
||||||
|
|
||||||
#if sickbeard.CACHE_DIR:
|
if sickbeard.CACHE_DIR:
|
||||||
# self.api_parms['cache'] = os.path.join(sickbeard.CACHE_DIR, indexer)
|
self.config['api_parms']['cache'] = os.path.join(sickbeard.CACHE_DIR, indexer)
|
||||||
|
|
||||||
# wrap the indexer API object and return it back
|
# wrap the indexer API object and return it back
|
||||||
self._wrapped = eval(indexer)(*args, **self.config['api_parms'])
|
self._wrapped = eval(indexer)(*args, **self.config['api_parms'])
|
||||||
|
Loading…
Reference in New Issue
Block a user