mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
5b89f3fe4e
commit
b2997acb46
@ -15,16 +15,10 @@ class NationalGeographicNews(BasicNewsRecipe):
|
|||||||
remove_javascript = True
|
remove_javascript = True
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
|
auto_cleanup = True
|
||||||
|
|
||||||
feeds = [(u'news', u'http://feeds.nationalgeographic.com/ng/News/News_Main')]
|
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):
|
def parse_feeds(self):
|
||||||
feeds = BasicNewsRecipe.parse_feeds(self)
|
feeds = BasicNewsRecipe.parse_feeds(self)
|
||||||
for curfeed in feeds:
|
for curfeed in feeds:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user