From 24b89df7614b43985a975ed3401467e67ec27602 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 May 2010 09:16:57 -0600 Subject: [PATCH] Fix Economist --- resources/recipes/economist.recipe | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/recipes/economist.recipe b/resources/recipes/economist.recipe index c0b9c464d8..35e06e65e6 100644 --- a/resources/recipes/economist.recipe +++ b/resources/recipes/economist.recipe @@ -69,9 +69,9 @@ class Economist(BasicNewsRecipe): key = None for tag in soup.findAll(['h1', 'h2']): text = ''.join(tag.findAll(text=True)) + if tag.name in ('h1', 'h2') and 'Classified ads' in text: + break if tag.name == 'h1': - if 'Classified ads' in text: - break if 'The world this week' in text or 'The world this year' in text: index_started = True if not index_started: