This commit is contained in:
Kovid Goyal 2010-04-13 09:31:00 +05:30
parent 0dd72fe725
commit 2781560b78

View File

@ -33,8 +33,8 @@ class TheAtlantic(BasicNewsRecipe):
soup = self.index_to_soup(self.INDEX) soup = self.index_to_soup(self.INDEX)
sectit = soup.find('h1', attrs={'class':'sectionTitle'}) sectit = soup.find('h1', attrs={'class':'sectionTitle'})
if sectit is not None: if sectit is not None:
texts = sectit.findAll('cufontext') texts = self.tag_to_string(sectit).strip().split()[-2:]
texts = map(self.tag_to_string, texts[-2:]) if texts:
self.timefmt = ' [%s]'%(' '.join(texts)) self.timefmt = ' [%s]'%(' '.join(texts))
cover = soup.find('img', src=True, attrs={'class':'cover'}) cover = soup.find('img', src=True, attrs={'class':'cover'})