diff --git a/src/calibre/web/feeds/recipes/recipe_cnn.py b/src/calibre/web/feeds/recipes/recipe_cnn.py index 6ce0f87d4e..369aff2e99 100644 --- a/src/calibre/web/feeds/recipes/recipe_cnn.py +++ b/src/calibre/web/feeds/recipes/recipe_cnn.py @@ -7,7 +7,7 @@ import re from calibre.web.feeds.news import BasicNewsRecipe class CNN(BasicNewsRecipe): - + title = 'CNN' description = 'Global news' timefmt = ' [%d %b %Y]' @@ -20,7 +20,7 @@ class CNN(BasicNewsRecipe): 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'<\!\-\-Article End\-\->.*?', lambda match : ''), (r'()
    .*?
', lambda match : match.group(1)), # drop story highlights (r'

(.*?)

(.*?)

', lambda match : '

' + match.group(1) + '

' + match.group(2) + '

'), # sports uses h2 for main title and h1 for subtitle (???) switch these around @@ -33,7 +33,7 @@ class CNN(BasicNewsRecipe): def print_version(self, url): return 'http://www.printthis.clickability.com/pt/printThis?clickMap=printThis&fb=Y&url=' + url - + feeds = [ ('Top News', 'http://rss.cnn.com/rss/cnn_topstories.rss'), ('World', 'http://rss.cnn.com/rss/cnn_world.rss'),