From c08c2df44da2ef47c3135e994f5d21d02054a994 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 17 Sep 2014 10:20:41 +0200 Subject: [PATCH] fix parsing of torrent titles --- modules/kickass/pages.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/kickass/pages.py b/modules/kickass/pages.py index b841ee4a..8eebc62c 100644 --- a/modules/kickass/pages.py +++ b/modules/kickass/pages.py @@ -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('/', '') \