From 399b6bbcb0c2ff341e3706f8c0f5b48a602516ad Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 Jan 2009 16:28:09 -0800 Subject: [PATCH] Fix #1588 (Recipe for "The Economist") --- src/calibre/web/feeds/recipes/recipe_economist.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/web/feeds/recipes/recipe_economist.py b/src/calibre/web/feeds/recipes/recipe_economist.py index 3c75bd4237..9ed19802b4 100644 --- a/src/calibre/web/feeds/recipes/recipe_economist.py +++ b/src/calibre/web/feeds/recipes/recipe_economist.py @@ -49,8 +49,10 @@ class Economist(BasicNewsRecipe): if not index_started: continue text = string.capwords(text) - feeds[text] = [] - ans.append(text) + if text not in feeds.keys(): + feeds[text] = [] + if text not in ans: + ans.append(text) key = text continue if key is None: