pull/1/head
DiMartinoXBMC 2015-06-01 23:44:59 +03:00
parent 4e4e2bf569
commit 856053197c
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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(
'<a class="gen f" href="tracker\.php\?f=(\d+)">.+? class=".+?" href="\./viewtopic\.php\?t=(\d+)">(.+?)</a>.+?<a .+?href="http://dl.+?">(.+?) &.+?<td class=".+?"><u>(.+?)</u>.+?<td class=".+?"><b>(\d+)',
'<a class="gen f" href="tracker\.php\?f=(\d+)">.+? class=".+?" href="viewtopic\.php\?t=(\d+)">(.+?)</a>.+?<a .+?href="http://dl.+?">(.+?)</a>.+?class="seedmed".+?(\d+)</.+?class=".+?eechmed".+?(\d+)',
re.DOTALL).findall(response):
if int(forum) in forums:
size = size.replace('&nbsp;', ' ')