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
|
url = NotAvailable
|
||||||
if not 'id' in tr.attrib:
|
if not 'id' in tr.attrib:
|
||||||
continue
|
continue
|
||||||
title = tr.find('.//a[@class="cellMainLink"]')
|
title = self.parser.tocleanstring(tr.find('.//a[@class="cellMainLink"]'))
|
||||||
if title is None:
|
# WTF is that?
|
||||||
title = u''
|
|
||||||
else:
|
|
||||||
title = unicode(title.text)
|
|
||||||
for red in tr.getchildren()[0].getchildren()[1].getchildren()[1].getchildren():
|
for red in tr.getchildren()[0].getchildren()[1].getchildren()[1].getchildren():
|
||||||
title += red.text_content()
|
title += red.text_content()
|
||||||
idt = tr.getchildren()[0].getchildren()[1].getchildren()[1].attrib.get('href', '').replace('/', '') \
|
idt = tr.getchildren()[0].getchildren()[1].getchildren()[1].attrib.get('href', '').replace('/', '') \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue