From 320d64194d435904487fd7bc3eebdded1ac355d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 18 Jan 2013 08:49:55 +0530 Subject: [PATCH] Fix #1101034 (the economist news download doesn't work anymore.) --- recipes/economist.recipe | 5 +++-- recipes/economist_free.recipe | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index b5e2a1fd9b..9c0b08c744 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe): remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(attrs={'class':['dblClkTrk', 'ec-article-info', - 'share_inline_header', 'related-items']}), + 'share_inline_header', 'related-items', + 'main-content-container']}), {'class': lambda x: x and 'share-links-header' in x}, ] - keep_only_tags = [dict(id='ec-article-body')] + keep_only_tags = [dict(name='article')] no_stylesheets = True preprocess_regexps = [(re.compile('.*', re.DOTALL), lambda x:'')] diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index b5e2a1fd9b..9c0b08c744 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe): remove_tags = [ dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(attrs={'class':['dblClkTrk', 'ec-article-info', - 'share_inline_header', 'related-items']}), + 'share_inline_header', 'related-items', + 'main-content-container']}), {'class': lambda x: x and 'share-links-header' in x}, ] - keep_only_tags = [dict(id='ec-article-body')] + keep_only_tags = [dict(name='article')] no_stylesheets = True preprocess_regexps = [(re.compile('.*', re.DOTALL), lambda x:'')]