From 76200fa4cd8639ab864b9b246f58a69b4282bb22 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 6 Aug 2011 11:13:26 -0600 Subject: [PATCH] Fix #822004 (WSJ News Fetch Script is picking up buttons in article) --- recipes/wsj.recipe | 1 + recipes/wsj_free.recipe | 1 + 2 files changed, 2 insertions(+) diff --git a/recipes/wsj.recipe b/recipes/wsj.recipe index a3bc041d25..7a044aa5a7 100644 --- a/recipes/wsj.recipe +++ b/recipes/wsj.recipe @@ -38,6 +38,7 @@ class WallStreetJournal(BasicNewsRecipe): dict(id=["articleTabs_tab_article", "articleTabs_tab_comments", "articleTabs_tab_interactive","articleTabs_tab_video","articleTabs_tab_map","articleTabs_tab_slideshow","articleTabs_tab_quotes","articleTabs_tab_document"]), {'class':['footer_columns','network','insetCol3wide','interactive','video','slideshow','map','insettip','insetClose','more_in', "insetContent", 'articleTools_bottom', 'aTools', "tooltip", "adSummary", "nav-inline"]}, dict(rel='shortcut icon'), + {'class':lambda x: x and 'sTools' in x}, ] remove_tags_after = [dict(id="article_story_body"), {'class':"article story"},] diff --git a/recipes/wsj_free.recipe b/recipes/wsj_free.recipe index dd42fb5540..331a393c03 100644 --- a/recipes/wsj_free.recipe +++ b/recipes/wsj_free.recipe @@ -40,6 +40,7 @@ class WallStreetJournal(BasicNewsRecipe): dict(name='div', attrs={'data-flash-settings':True}), {'class':['insetContent embedType-interactive insetCol3wide','insetCol6wide','insettipUnit']}, dict(rel='shortcut icon'), + {'class':lambda x: x and 'sTools' in x}, ] remove_tags_after = [dict(id="article_story_body"), {'class':"article story"},]