From 2781560b789fd68f40f3851491d8119fd96e86b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Apr 2010 09:31:00 +0530 Subject: [PATCH] ... --- resources/recipes/atlantic.recipe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/recipes/atlantic.recipe b/resources/recipes/atlantic.recipe index c3a4cef10d..c6db016010 100644 --- a/resources/recipes/atlantic.recipe +++ b/resources/recipes/atlantic.recipe @@ -33,9 +33,9 @@ class TheAtlantic(BasicNewsRecipe): soup = self.index_to_soup(self.INDEX) sectit = soup.find('h1', attrs={'class':'sectionTitle'}) if sectit is not None: - texts = sectit.findAll('cufontext') - texts = map(self.tag_to_string, texts[-2:]) - self.timefmt = ' [%s]'%(''.join(texts)) + texts = self.tag_to_string(sectit).strip().split()[-2:] + if texts: + self.timefmt = ' [%s]'%(' '.join(texts)) cover = soup.find('img', src=True, attrs={'class':'cover'}) if cover is not None: