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)

This commit is contained in:
Kovid Goyal 2014-05-04 18:07:08 +05:30
parent 5b89f3fe4e
commit b2997acb46

View File

@ -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: