fix parsing torrents descriptions
This commit is contained in:
parent
e7c6e6b4ab
commit
7344a22b0e
1 changed files with 2 additions and 1 deletions
|
|
@ -190,6 +190,7 @@ class TorrentsPage(BasePage):
|
||||||
title_t = title_t[0]
|
title_t = title_t[0]
|
||||||
if title_t.find('strong') is not None:
|
if title_t.find('strong') is not None:
|
||||||
title_t = title_t.find('strong')
|
title_t = title_t.find('strong')
|
||||||
|
if title_t.text is not None:
|
||||||
title = title_t.text.strip()
|
title = title_t.text.strip()
|
||||||
|
|
||||||
body_t = box.cssselect('div.body,div.desc')
|
body_t = box.cssselect('div.body,div.desc')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue