fix parsing torrents descriptions

This commit is contained in:
Romain Bignon 2012-11-10 09:47:37 +01:00
commit 7344a22b0e

View file

@ -190,7 +190,8 @@ class TorrentsPage(BasePage):
title_t = title_t[0]
if title_t.find('strong') is not None:
title_t = title_t.find('strong')
title = title_t.text.strip()
if title_t.text is not None:
title = title_t.text.strip()
body_t = box.cssselect('div.body,div.desc')
if body_t: