diff --git a/addon.xml b/addon.xml index 4b11f2d..ba700c5 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@  - + diff --git a/functions.py b/functions.py index a382f3c..a802992 100644 --- a/functions.py +++ b/functions.py @@ -1451,7 +1451,15 @@ class DownloadDB: def get(self, title): self._connect() - self.cur.execute( + try: + self.cur.execute( + 'select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads where title="' + decode( + title) + '"') + except: + Debug('[DownloadDB]: DELETE ' + str(self.filename)) + xbmcvfs.delete(self.filename) + self._connect() + self.cur.execute( 'select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads where title="' + decode( title) + '"') x = self.cur.fetchone()