mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-26 14:35:03 +01:00
Fix #1101034 (the economist news download doesn't work anymore.)
This commit is contained in:
parent
705bea4e19
commit
320d64194d
2 changed files with 6 additions and 4 deletions
|
|
@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe):
|
|||
remove_tags = [
|
||||
dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']),
|
||||
dict(attrs={'class':['dblClkTrk', 'ec-article-info',
|
||||
'share_inline_header', 'related-items']}),
|
||||
'share_inline_header', 'related-items',
|
||||
'main-content-container']}),
|
||||
{'class': lambda x: x and 'share-links-header' in x},
|
||||
]
|
||||
keep_only_tags = [dict(id='ec-article-body')]
|
||||
keep_only_tags = [dict(name='article')]
|
||||
no_stylesheets = True
|
||||
preprocess_regexps = [(re.compile('</html>.*', re.DOTALL),
|
||||
lambda x:'</html>')]
|
||||
|
|
|
|||
|
|
@ -41,10 +41,11 @@ class Economist(BasicNewsRecipe):
|
|||
remove_tags = [
|
||||
dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']),
|
||||
dict(attrs={'class':['dblClkTrk', 'ec-article-info',
|
||||
'share_inline_header', 'related-items']}),
|
||||
'share_inline_header', 'related-items',
|
||||
'main-content-container']}),
|
||||
{'class': lambda x: x and 'share-links-header' in x},
|
||||
]
|
||||
keep_only_tags = [dict(id='ec-article-body')]
|
||||
keep_only_tags = [dict(name='article')]
|
||||
no_stylesheets = True
|
||||
preprocess_regexps = [(re.compile('</html>.*', re.DOTALL),
|
||||
lambda x:'</html>')]
|
||||
|
|
|
|||
Loading…
Reference in a new issue