mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-26 23:04:27 +02:00
Fix #833074 (business links not working for CNN)
This commit is contained in:
parent
3f55291e7d
commit
7fd8bf0f2a
1 changed files with 3 additions and 2 deletions
|
|
@ -28,11 +28,12 @@ class CNN(BasicNewsRecipe):
|
|||
(re.compile(r'<style.*?</style>', re.DOTALL), lambda m: ''),
|
||||
]
|
||||
|
||||
keep_only_tags = [dict(id='cnnContentContainer')]
|
||||
keep_only_tags = [dict(id=['cnnContentContainer', 'storycontent'])]
|
||||
remove_tags = [
|
||||
{'class':['cnn_strybtntools', 'cnn_strylftcntnt',
|
||||
'cnn_strybtntools', 'cnn_strybtntoolsbttm', 'cnn_strybtmcntnt',
|
||||
'cnn_strycntntrgt']},
|
||||
'cnn_strycntntrgt', 'hed_side', 'foot']},
|
||||
dict(id=['ie_column']),
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue