[qcineoob] search and display torrent

This commit is contained in:
Julien Veyssier 2013-03-12 19:20:24 +01:00
commit c76db754e9
8 changed files with 597 additions and 106 deletions

View file

@ -73,9 +73,7 @@ class TorrentPage(BasePage):
title = NotAvailable
size = NotAvailable
url = 'https://isohunt.com/download/%s/%s.torrent' % (id, id)
for a in self.document.getiterator('a'):
if 'Search more torrents of' in a.attrib.get('title', ''):
title = unicode(a.tail)
title = unicode(self.parser.select(self.document.getroot(),'head > meta[name=title]',1).attrib.get('content',''))
seed = NotAvailable
leech = NotAvailable
tip_id = "none"