From 90e34c4a745c3193247b9bc27779aad60b77d9ba Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 3 May 2014 08:29:44 +0200 Subject: keep the original title. --- pyaggr3g470r/crawler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/crawler.py b/pyaggr3g470r/crawler.py index ec3dcef4..96b9a540 100644 --- a/pyaggr3g470r/crawler.py +++ b/pyaggr3g470r/crawler.py @@ -176,11 +176,10 @@ class FeedGetter(object): description = "" try: description = BeautifulSoup(description, "lxml").decode() - article_title = BeautifulSoup(article.title, "lxml").decode() except Exception as e: pyaggr3g470r_log.error("Problem when sanitizing the content of the article %s (%s)" % (article_title, nice_url)) - article_title = article.title + article_title = article.title try: post_date = datetime(*article.published_parsed[:6]) -- cgit