fix row identification problem in isohunt
because of their bad website which doesn't produce the same page each time
This commit is contained in:
parent
638dc1f466
commit
fdf09c4ad0
1 changed files with 26 additions and 24 deletions
|
|
@ -28,7 +28,9 @@ class TorrentsPage(BasePage):
|
|||
def iter_torrents(self):
|
||||
for tr in self.document.getiterator('tr'):
|
||||
if tr.attrib.get('class', '') == 'hlRow':
|
||||
# TODO à corriger
|
||||
# sometimes the first tr also has the attribute hlRow
|
||||
# i use that to ditinct it from the others
|
||||
if tr.attrib.has_key('onmouseout'):
|
||||
atitle = tr.getchildren()[2].getchildren()[1]
|
||||
title = atitle.text
|
||||
if not title:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue