Update The Times

Merge branch 'patch-13' of https://github.com/bobbysteel/calibre
This commit is contained in:
Kovid Goyal 2017-06-20 18:31:34 +05:30
commit 5cf39416dd
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -80,8 +80,8 @@ class TimesOnline(BasicNewsRecipe):
]
remove_attributes = ['lang']
keep_only_tags = [
dict(attrs={'class': 'Article Article--default'}
), dict(attrs={'class': 'f-author'}), dict(attrs={'id': 'bodycopy'})
{'attrs': {'id': ['article-main','bodycopy']}},
{'attrs': {'class': ['Article Article--default','f-author']}}
]
remove_tags_after = dict(attrs={'class': 'Article-content'})