mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Filter out scorecardresearch images from guardian downloads
This commit is contained in:
parent
9df8c2e629
commit
d39b5e52c6
@ -56,6 +56,7 @@ class Guardian(BasicNewsRecipe):
|
||||
dict(attrs={'class': lambda x: x and 'modern-visible' in x.split()}),
|
||||
classes('badge-slot reveal-caption__checkbox mobile-only element-rich-link'),
|
||||
dict(name=['link', 'meta', 'style', 'svg', 'input', 'source', 'noscript', 'button']),
|
||||
dict(name='img', src=lambda x: x and 'https://sb.scorecardresearch.com/' in x),
|
||||
]
|
||||
remove_tags_after = [
|
||||
classes('content__article-body js-bottom-marker article-body-commercial-selector'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user