diff --git a/sickbeard/tvcache.py b/sickbeard/tvcache.py index 1923018d..150d1e2d 100644 --- a/sickbeard/tvcache.py +++ b/sickbeard/tvcache.py @@ -74,10 +74,15 @@ class TVCache(): self.provider = provider self.providerID = self.provider.getID() + self.providerDB = None self.minTime = 10 def _getDB(self): - return CacheDBConnection(self.providerID) + # init provider database if not done already + if not self.providerDB: + self.providerDB = CacheDBConnection(self.providerID) + + return self.providerDB def _clearCache(self): if self.shouldClearCache():