From 856053197c062bdb1ee32dc92dac3306f21f4971 Mon Sep 17 00:00:00 2001 From: DiMartinoXBMC Date: Mon, 1 Jun 2015 23:44:59 +0300 Subject: [PATCH] update --- functions.py | 8 +++++++- resources/searchers/RuTrackerOrg.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/functions.py b/functions.py index 88339a8..b4dc813 100644 --- a/functions.py +++ b/functions.py @@ -1425,7 +1425,13 @@ class DownloadDB: def get_all(self): self._connect() - self.cur.execute('select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads order by addtime DESC') + try: + self.cur.execute('select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads order by addtime DESC') + 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 order by addtime DESC') x = self.cur.fetchall() self._close() return x if x else None diff --git a/resources/searchers/RuTrackerOrg.py b/resources/searchers/RuTrackerOrg.py index 0dc0f76..ce91a7d 100644 --- a/resources/searchers/RuTrackerOrg.py +++ b/resources/searchers/RuTrackerOrg.py @@ -110,7 +110,7 @@ class RuTrackerOrg(SearcherABC.SearcherABC): 1592, 1595, 1556, 1560, 1561, 1653, 1570, 1654, 1655, 1656, 1930, 1931, 1932, 1562, 1563, 1626, 1564, 1565, 1559, 1566, 1573, 1567] for (forum, link, title, size, seeds, leechers) in re.compile( - '.+? class=".+?" href="\./viewtopic\.php\?t=(\d+)">(.+?).+?(.+?) &.+?(.+?).+?(\d+)', + '.+? class=".+?" href="viewtopic\.php\?t=(\d+)">(.+?).+?(.+?).+?class="seedmed".+?(\d+)