fix parsing of torrent titles
This commit is contained in:
parent
e3666afdfe
commit
c08c2df44d
1 changed files with 2 additions and 5 deletions
|
|
@ -34,11 +34,8 @@ class TorrentsPage(BasePage):
|
|||
url = NotAvailable
|
||||
if not 'id' in tr.attrib:
|
||||
continue
|
||||
title = tr.find('.//a[@class="cellMainLink"]')
|
||||
if title is None:
|
||||
title = u''
|
||||
else:
|
||||
title = unicode(title.text)
|
||||
title = self.parser.tocleanstring(tr.find('.//a[@class="cellMainLink"]'))
|
||||
# WTF is that?
|
||||
for red in tr.getchildren()[0].getchildren()[1].getchildren()[1].getchildren():
|
||||
title += red.text_content()
|
||||
idt = tr.getchildren()[0].getchildren()[1].getchildren()[1].attrib.get('href', '').replace('/', '') \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue