mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #833074 (business links not working for CNN)
This commit is contained in:
parent
3f55291e7d
commit
7fd8bf0f2a
@ -28,11 +28,12 @@ class CNN(BasicNewsRecipe):
|
|||||||
(re.compile(r'<style.*?</style>', re.DOTALL), lambda m: ''),
|
(re.compile(r'<style.*?</style>', re.DOTALL), lambda m: ''),
|
||||||
]
|
]
|
||||||
|
|
||||||
keep_only_tags = [dict(id='cnnContentContainer')]
|
keep_only_tags = [dict(id=['cnnContentContainer', 'storycontent'])]
|
||||||
remove_tags = [
|
remove_tags = [
|
||||||
{'class':['cnn_strybtntools', 'cnn_strylftcntnt',
|
{'class':['cnn_strybtntools', 'cnn_strylftcntnt',
|
||||||
'cnn_strybtntools', 'cnn_strybtntoolsbttm', 'cnn_strybtmcntnt',
|
'cnn_strybtntools', 'cnn_strybtntoolsbttm', 'cnn_strybtmcntnt',
|
||||||
'cnn_strycntntrgt']},
|
'cnn_strycntntrgt', 'hed_side', 'foot']},
|
||||||
|
dict(id=['ie_column']),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user