From 0ad159b8b186dd68ce7bc9003420a524058392ef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Dec 2011 12:39:57 +0530 Subject: [PATCH] Fix #906143 (News Recipe Problem: Glasgow Herald) --- recipes/glasgow_herald.recipe | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/recipes/glasgow_herald.recipe b/recipes/glasgow_herald.recipe index 387b57d0bf..ef9e3ded79 100644 --- a/recipes/glasgow_herald.recipe +++ b/recipes/glasgow_herald.recipe @@ -1,4 +1,3 @@ - from calibre.web.feeds.news import BasicNewsRecipe class GlasgowHerald(BasicNewsRecipe): @@ -9,12 +8,16 @@ class GlasgowHerald(BasicNewsRecipe): language = 'en_GB' __author__ = 'Kovid Goyal' + use_embedded_content = False - keep_only_tags = [dict(attrs={'class':'article'})] - remove_tags = [ - dict(id=['pic-nav']), - dict(attrs={'class':['comments-top']}) - ] + no_stylesheets = True + auto_cleanup = True + + #keep_only_tags = [dict(attrs={'class':'article'})] + #remove_tags = [ + #dict(id=['pic-nav']), + #dict(attrs={'class':['comments-top']}) + #] feeds = [ @@ -25,5 +28,4 @@ class GlasgowHerald(BasicNewsRecipe): (u'Arts & Entertainment', u'http://www.heraldscotland.com/cmlink/1.768',), (u'Columnists', u'http://www.heraldscotland.com/cmlink/1.658574')] - - +