From fea4b9cbacc1d0adc1330fe1ecfbc435c56da014 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Mar 2014 23:54:31 +0530 Subject: [PATCH] Update American Thinker Fixes #1288371 [American Thinker news](https://bugs.launchpad.net/calibre/+bug/1288371) --- recipes/american_thinker.recipe | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/recipes/american_thinker.recipe b/recipes/american_thinker.recipe index b54e930774..c4dc7328f7 100644 --- a/recipes/american_thinker.recipe +++ b/recipes/american_thinker.recipe @@ -11,7 +11,7 @@ class AmericanThinker(BasicNewsRecipe): __author__ = 'Walt Anthony' publisher = 'Thomas Lifson' category = 'news, politics, USA' - oldest_article = 7 #days + oldest_article = 7 # days max_articles_per_feed = 50 summary_length = 150 language = 'en' @@ -19,7 +19,6 @@ class AmericanThinker(BasicNewsRecipe): remove_javascript = True no_stylesheets = True - conversion_options = { 'comment' : description , 'tags' : category @@ -27,17 +26,12 @@ class AmericanThinker(BasicNewsRecipe): , 'language' : language , 'linearize_tables' : True } - - remove_tags = [ - dict(name=['table', 'iframe', 'embed', 'object']) - ] - - remove_tags_after = dict(name='div', attrs={'class':'article_body'}) - + auto_claenup = True feeds = [(u'http://feeds.feedburner.com/americanthinker'), - (u'http://feeds.feedburner.com/AmericanThinkerBlog') + (u'http://feeds.feedburner.com/AmericanThinkerBlog') ] def print_version(self, url): + return 'http://www.americanthinker.com/assets/3rd_party/printpage/?url=' + url return 'http://www.americanthinker.com/printpage/?url=' + url