strip description
This commit is contained in:
parent
e114fb654f
commit
241179665d
1 changed files with 2 additions and 2 deletions
|
|
@ -163,10 +163,10 @@ class TorrentsPage(BasePage):
|
||||||
|
|
||||||
title_t = box.cssselect('div.head')
|
title_t = box.cssselect('div.head')
|
||||||
if title_t:
|
if title_t:
|
||||||
title = title_t[0].find('strong').text
|
title = title_t[0].find('strong').text.strip()
|
||||||
body_t = box.cssselect('div.body')
|
body_t = box.cssselect('div.body')
|
||||||
if body_t:
|
if body_t:
|
||||||
body = html2text(self.browser.parser.tostring(body_t[0]))
|
body = html2text(self.browser.parser.tostring(body_t[0])).strip()
|
||||||
|
|
||||||
if title and body:
|
if title and body:
|
||||||
if torrent.description is NotLoaded:
|
if torrent.description is NotLoaded:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue