update
parent
4e4e2bf569
commit
856053197c
|
@ -1424,6 +1424,12 @@ class DownloadDB:
|
||||||
self.version = version
|
self.version = version
|
||||||
|
|
||||||
def get_all(self):
|
def get_all(self):
|
||||||
|
self._connect()
|
||||||
|
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._connect()
|
||||||
self.cur.execute('select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads order by addtime DESC')
|
self.cur.execute('select addtime, title, path, type, jsoninfo, status, torrent, ind, lastupdate, storage from downloads order by addtime DESC')
|
||||||
x = self.cur.fetchall()
|
x = self.cur.fetchall()
|
||||||
|
|
|
@ -110,7 +110,7 @@ class RuTrackerOrg(SearcherABC.SearcherABC):
|
||||||
1592, 1595, 1556, 1560, 1561, 1653, 1570, 1654, 1655, 1656, 1930, 1931, 1932, 1562, 1563, 1626,
|
1592, 1595, 1556, 1560, 1561, 1653, 1570, 1654, 1655, 1656, 1930, 1931, 1932, 1562, 1563, 1626,
|
||||||
1564, 1565, 1559, 1566, 1573, 1567]
|
1564, 1565, 1559, 1566, 1573, 1567]
|
||||||
for (forum, link, title, size, seeds, leechers) in re.compile(
|
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):
|
re.DOTALL).findall(response):
|
||||||
if int(forum) in forums:
|
if int(forum) in forums:
|
||||||
size = size.replace(' ', ' ')
|
size = size.replace(' ', ' ')
|
||||||
|
|
Loading…
Reference in New Issue