This commit is contained in:
Kovid Goyal 2018-02-07 21:50:15 +05:30
parent 06f5e03e76
commit cbc95ed9e5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class NewYorkTimes(BasicNewsRecipe):
remove_tags = [ remove_tags = [
dict(attrs={'aria-label':'tools'.split()}), dict(attrs={'aria-label':'tools'.split()}),
dict(attrs={'data-videoid':True}), dict(attrs={'data-videoid':True}),
dict(name='button'), dict(name='button meta link'.split()),
dict(id=lambda x: x and x.startswith('story-ad-')), dict(id=lambda x: x and x.startswith('story-ad-')),
dict(name='a', href=lambda x: x and '#story-continues-' in x), dict(name='a', href=lambda x: x and '#story-continues-' in x),
dict(name='a', href=lambda x: x and '#whats-next' in x), dict(name='a', href=lambda x: x and '#whats-next' in x),

View File

@ -66,7 +66,7 @@ class NewYorkTimes(BasicNewsRecipe):
remove_tags = [ remove_tags = [
dict(attrs={'aria-label':'tools'.split()}), dict(attrs={'aria-label':'tools'.split()}),
dict(attrs={'data-videoid':True}), dict(attrs={'data-videoid':True}),
dict(name='button'), dict(name='button meta link'.split()),
dict(id=lambda x: x and x.startswith('story-ad-')), dict(id=lambda x: x and x.startswith('story-ad-')),
dict(name='a', href=lambda x: x and '#story-continues-' in x), dict(name='a', href=lambda x: x and '#story-continues-' in x),
dict(name='a', href=lambda x: x and '#whats-next' in x), dict(name='a', href=lambda x: x and '#whats-next' in x),