From b2b473a05ee49807ed66c9a423b99890339a8afc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Apr 2013 08:42:32 +0530 Subject: [PATCH] Update Financial Times UK --- recipes/financial_times_uk.recipe | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/financial_times_uk.recipe b/recipes/financial_times_uk.recipe index eae77f4f4d..8105a9777f 100644 --- a/recipes/financial_times_uk.recipe +++ b/recipes/financial_times_uk.recipe @@ -110,10 +110,12 @@ class FinancialTimes(BasicNewsRecipe): soup = self.index_to_soup(self.INDEX) #dates= self.tag_to_string(soup.find('div', attrs={'class':'btm-links'}).find('div')) #self.timefmt = ' [%s]'%dates + section_title = 'Untitled' for column in soup.findAll('div', attrs = {'class':'feedBoxes clearfix'}): for section in column. findAll('div', attrs = {'class':'feedBox'}): - section_title=self.tag_to_string(section.find('h4')) + sectiontitle=self.tag_to_string(section.find('h4')) + if '...' not in sectiontitle: section_title=sectiontitle for article in section.ul.findAll('li'): articles = [] title=self.tag_to_string(article.a)