Fix piratebay search

Not sure if it is the best way to remove first element of an
operator...
This commit is contained in:
Florent 2012-12-28 23:35:41 +01:00
commit 7c1df88815

View file

@ -38,7 +38,11 @@ class TorrentsPage(BasePage):
def iter_torrents(self):
table = self.parser.select(self.document.getroot(), 'table#searchResult', 1)
first = True
for tr in table.getiterator('tr'):
if first:
first = False
continue
if tr.get('class', '') != "header":
td = tr.getchildren()[1]
div = td.getchildren()[0]