From 6c5d14ff4f91aa115f87f0055e6de0a8fddb27ca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 7 Mar 2013 15:12:31 +0530 Subject: [PATCH] ... --- recipes/hindu.recipe | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/hindu.recipe b/recipes/hindu.recipe index eb84fc4031..74c0d6539a 100644 --- a/recipes/hindu.recipe +++ b/recipes/hindu.recipe @@ -41,13 +41,16 @@ class TheHindu(BasicNewsRecipe): if current_section and x.get('class', '') == 'tpaper': a = x.find('a', href=True) if a is not None: + title = self.tag_to_string(a) + self.log('\tFound article:', title) current_articles.append({'url':a['href']+'?css=print', - 'title':self.tag_to_string(a), 'date': '', + 'title':title, 'date': '', 'description':''}) if x.name == 'h3': if current_section and current_articles: feeds.append((current_section, current_articles)) current_section = self.tag_to_string(x) + self.log('Found section:', current_section) current_articles = [] return feeds