Fixed New Yorker Magazine recipe

The XHTML produced by the recipe had an ill-formed XHTML that, when converted to KEPUB, was not properly parsed on Kobo devices.
This commit is contained in:
João Mateus 2017-12-25 23:56:46 +00:00 committed by GitHub
parent d2efdc648a
commit 4e61dea283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@ class NewYorker(BasicNewsRecipe):
classes('content-ad-wrapper social-hover background-image'),
dict(id=['newsletter-signup']),
dict(attrs={'class': lambda x: x and 'ImageEmbed__button___' in x}),
dict(attrs={'class': lambda x: x and 'ArticleLedeImage__button___' in x}),
dict(name='links source'.split()), ]
remove_attributes = ['style']