From 5c58744e5fce76e99e9a96e78bb54120b6e4fd07 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Mon, 29 Jun 2015 22:07:02 +0300 Subject: [PATCH] dl base update --- addon.xml | 2 +- functions.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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()