From a689e82b56b04ed7e5245fe9d46d8a2f3c79587e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 7 Apr 2012 17:26:19 +0530 Subject: [PATCH] Update Sun UK --- recipes/the_sun.recipe | 51 ++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/recipes/the_sun.recipe b/recipes/the_sun.recipe index 80b37f329a..9285c0b2c2 100644 --- a/recipes/the_sun.recipe +++ b/recipes/the_sun.recipe @@ -1,57 +1,60 @@ import re from calibre.web.feeds.recipes import BasicNewsRecipe - class AdvancedUserRecipe1325006965(BasicNewsRecipe): title = u'The Sun UK' cover_url = 'http://www.thesun.co.uk/img/global/new-masthead-logo.png' - description = 'A Recipe for The Sun tabloid UK - uses feed43' + description = 'A Recipe for The Sun tabloid UK' __author__ = 'Dave Asbury' - # last updated 20/2/12 + # last updated 7/4/12 language = 'en_GB' oldest_article = 1 max_articles_per_feed = 15 remove_empty_feeds = True no_stylesheets = True + #auto_cleanup = True + #articles_are_obfuscated = True masthead_url = 'http://www.thesun.co.uk/sol/img/global/Sun-logo.gif' - encoding = 'cp1251' + encoding = 'UTF-8' - encoding = 'cp1252' remove_empty_feeds = True remove_javascript = True no_stylesheets = True extra_css = ''' - body{ text-align: justify; font-family:Arial,Helvetica,sans-serif; font-size:11px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal;} - ''' + body{ text-align: justify; font-family:Arial,Helvetica,sans-serif; font-size:11px; font-size-adjust:none; font-stretch:normal; font-style:normal; font-variant:normal; font-weight:normal;} + ''' preprocess_regexps = [ - (re.compile(r'