From b2997acb46ec1410fc1f7858938d066131f098cf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 4 May 2014 18:07:08 +0530 Subject: [PATCH] Update National Geographic. Fixes #1315373 [calibre National Geographic News recipe is not fetching news anymore since few week ago](https://bugs.launchpad.net/calibre/+bug/1315373) --- recipes/nationalgeographic.recipe | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/recipes/nationalgeographic.recipe b/recipes/nationalgeographic.recipe index 44aac314f9..f47f973f49 100644 --- a/recipes/nationalgeographic.recipe +++ b/recipes/nationalgeographic.recipe @@ -15,16 +15,10 @@ class NationalGeographicNews(BasicNewsRecipe): remove_javascript = True no_stylesheets = True use_embedded_content = False + auto_cleanup = True feeds = [(u'news', u'http://feeds.nationalgeographic.com/ng/News/News_Main')] - remove_tags_before = dict(id='page_head') - remove_tags_after = [dict(id='social_buttons'),{'class':'aside'}] - remove_tags = [ - {'class':'hidden'} - - ] - def parse_feeds(self): feeds = BasicNewsRecipe.parse_feeds(self) for curfeed in feeds: