From f0286d3aa42d6ce569cfd2e662c8fde965bdc536 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 May 2014 09:14:49 +0530 Subject: [PATCH] Update Slate --- recipes/slate.recipe | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes/slate.recipe b/recipes/slate.recipe index 152c2fa89b..c7c476342b 100644 --- a/recipes/slate.recipe +++ b/recipes/slate.recipe @@ -24,11 +24,12 @@ class Slate(BasicNewsRecipe): keep_only_tags = [ dict(name='header', attrs={'class':'article-header'}), - dict(name='section', attrs={'class':'content'}), + dict(name='section', attrs={'class':lambda x: x and 'content' == x.strip()}), ] remove_tags = [ dict(id='header_social'), - dict(attrs={'class':['prop-name', 'prop-desc', 'authorbox']}), + dict(attrs={'class':['prop-name', 'prop-desc', 'authorbox', 'twitter', 'email', 'facebook', 'follow-links', 'join-in']}), + dict(attrs={'class':lambda x: x and 'sharing-buttons' in x.split()}), ] def print_version(self, url):