From d97aaefd2caf3bf9287a7c6c34f77312c745ebeb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Feb 2009 22:58:25 -0800 Subject: [PATCH] Fix Washington Post recipe --- src/calibre/web/feeds/news.py | 2 +- .../web/feeds/recipes/recipe_wash_post.py | 25 ++++++++----------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index 660b98fd44..edcf315d62 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -91,7 +91,7 @@ class BasicNewsRecipe(object, LoggingInterface): #: If True stylesheets are not downloaded and processed no_stylesheets = False - #: Convenient flag to strip all javascripts tags from the downloaded HTML + #: Convenient flag to strip all javascript tags from the downloaded HTML remove_javascript = True #: If True the GUI will ask the user for a username and password diff --git a/src/calibre/web/feeds/recipes/recipe_wash_post.py b/src/calibre/web/feeds/recipes/recipe_wash_post.py index 58042d0d4a..dc85126065 100644 --- a/src/calibre/web/feeds/recipes/recipe_wash_post.py +++ b/src/calibre/web/feeds/recipes/recipe_wash_post.py @@ -12,19 +12,7 @@ class WashingtonPost(BasicNewsRecipe): language = _('English') - preprocess_regexps = [ (re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in -[ - (r'.*?' , lambda match : ''), - (r'
.*?', lambda match : ''), - (r'.*?', lambda match : ''), - (r'.*?', lambda match : ''), - (r'.*?.correction {', lambda match : '