extratorrent fix

This commit is contained in:
DiMartinoX committed 2015-01-09 23:18:55 +03:00
1 parent 004ba66eeb
commit fb00cbae7d
4 files changed
+164 -30

No files matched your search

+3 -1
View File
@@ -85,10 +85,12 @@ class ExtraTorrent(SearcherABC.SearcherABC):
if None != response and 0 < len(response):
#print response
dat = re.compile(
r'''<a href="/torrent_(download/\d+).+? title="Download (.+?) torrent".+?</a>.+?</td><td>(.+?)</td><td class="sy">(\d+)</td><td class="ly">(\d+)</td>''',
r'''<a href="/torrent_(download/\d+).+? title="Download (.+?) torrent".+?</a>.+?</td><td>(.+?)</td>.+?<td class="sy">(.+?)</td>.+?<td class="ly">(.+?)</td>''',
re.DOTALL).findall(response)
for (link, title, size, seeds, leechers) in dat:
size = size.replace('&nbsp;', ' ')
seeds=seeds.replace('---', '0')
leechers=leechers.replace('---', '0')
image = sys.modules["__main__"].__root__ + self.searchIcon
link = 'http://extratorrent.cc/'+link
filesList.append((