mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix for __exit__ DB errors
This commit is contained in:
parent
3f6084fe4b
commit
61e1e5d2c2
@ -344,7 +344,7 @@ class BTNCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
else:
|
||||
|
@ -255,7 +255,7 @@ class HDBitsCache(tvcache.TVCache):
|
||||
ql.append(ci)
|
||||
|
||||
if ql:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(ql)
|
||||
|
||||
else:
|
||||
|
@ -377,7 +377,7 @@ class HDTorrentsCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -318,7 +318,7 @@ class IPTorrentsCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -455,7 +455,7 @@ class KATCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -342,7 +342,7 @@ class NewznabCache(tvcache.TVCache):
|
||||
ql.append(ci)
|
||||
|
||||
if ql:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(ql)
|
||||
|
||||
else:
|
||||
|
@ -367,7 +367,7 @@ class NextGenCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -340,7 +340,7 @@ class PublicHDCache(tvcache.TVCache):
|
||||
ql.append(ci)
|
||||
|
||||
if ql:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(ql)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -362,7 +362,7 @@ class SCCCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -302,7 +302,7 @@ class SpeedCDCache(tvcache.TVCache):
|
||||
ql.append(ci)
|
||||
|
||||
if ql:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(ql)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -435,7 +435,7 @@ class ThePirateBayCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -326,7 +326,7 @@ class TorrentDayCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
@ -321,7 +321,7 @@ class TorrentLeechCache(tvcache.TVCache):
|
||||
cl.append(ci)
|
||||
|
||||
if cl:
|
||||
with self._getDB() as myDB:
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
def _parseItem(self, item):
|
||||
|
Loading…
Reference in New Issue
Block a user