extratorrent fix
This commit is contained in:
1 parent
004ba66eeb
commit
fb00cbae7d
4 files changed
+164
-30
No files matched your search
@@ -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(' ', ' ')
|
||||
seeds=seeds.replace('---', '0')
|
||||
leechers=leechers.replace('---', '0')
|
||||
image = sys.modules["__main__"].__root__ + self.searchIcon
|
||||
link = 'http://extratorrent.cc/'+link
|
||||
filesList.append((
|
||||
|
||||
Reference in new issue
Block a user