diff --git a/recipes/atlantic.recipe b/recipes/atlantic.recipe index 22380221db..1ca15d150c 100644 --- a/recipes/atlantic.recipe +++ b/recipes/atlantic.recipe @@ -1,5 +1,5 @@ #!/usr/bin/env python - +from __future__ import unicode_literals __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal ' ''' @@ -21,14 +21,15 @@ class TheAtlantic(BasicNewsRecipe): {'attrs':{'class':['article-header', 'article-body', 'article-magazine']}}, ] remove_tags = [ - {'name': ['meta', 'link']}, - {'attrs':{'class':['offset-wrapper']}}, + {'name': ['meta', 'link', 'noscript']}, + {'attrs':{'class':['offset-wrapper', 'ad-boxfeatures-wrapper']}}, {'attrs':{'class':lambda x: x and 'article-tools' in x}}, + {'src':lambda x:x and 'spotxchange.com' in x}, ] no_stylesheets = True preprocess_regexps = [ - (re.compile(r'', re.DOTALL), lambda m: ''), - (re.compile(r'.*', re.DOTALL), lambda m: ''), + (re.compile(r'^.*