diff --git a/resources/recipes/atlantic.recipe b/resources/recipes/atlantic.recipe index c6db016010..a41a931e37 100644 --- a/resources/recipes/atlantic.recipe +++ b/resources/recipes/atlantic.recipe @@ -5,7 +5,7 @@ __copyright__ = '2008, Kovid Goyal ' ''' theatlantic.com ''' -import string +import string, re from calibre.web.feeds.news import BasicNewsRecipe from calibre.ebooks.BeautifulSoup import Tag, NavigableString @@ -23,6 +23,8 @@ class TheAtlantic(BasicNewsRecipe): remove_tags = [dict(id=['header', 'printAds', 'pageControls'])] no_stylesheets = True + preprocess_regexps = [(re.compile(r'', re.DOTALL), lambda m: '')] + def print_version(self, url): return url.replace('/archive/', '/print/')