From 9076786195a271961ebaa05fa28366f55ca679cb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Jan 2014 09:22:56 +0530 Subject: [PATCH] Update New York Times --- recipes/nytimes.recipe | 9 +++++++-- recipes/nytimes_sub.recipe | 8 ++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/recipes/nytimes.recipe b/recipes/nytimes.recipe index acb237b9ce..a8ae39e9fc 100644 --- a/recipes/nytimes.recipe +++ b/recipes/nytimes.recipe @@ -174,6 +174,7 @@ class NYTimes(BasicNewsRecipe): dict(attrs={'class':[ 'articleFooter', 'articleTools', + 'rfd', 'columnGroup singleRule', 'columnGroup last', 'columnGroup last', @@ -214,6 +215,7 @@ class NYTimes(BasicNewsRecipe): 'videoHeader',#added 02-11-2011 'articleInlineVideoHolder', #added 02-11-2011 'assetCompanionAd', + 'nytint-sectionHeader', re.compile('^subNavigation'), re.compile('^leaderboard'), re.compile('^module'), @@ -248,13 +250,15 @@ class NYTimes(BasicNewsRecipe): 'masthead', 'masthead-nav', 'memberTools', - 'navigation', + 'navigation', 'navigation-ghost', 'navigation-modal', 'navigation-edge', + 'page-footer', 'portfolioInline', 'readerReviews', 'readerReviewsCount', 'relatedArticles', 'relatedTopics', 'respond', + 'ribbon', 'side_search', 'side_index', 'side_tool', @@ -262,8 +266,9 @@ class NYTimes(BasicNewsRecipe): 'skybox', #added for DealBook 'TopAd', #added for DealBook 'related-content', #added for DealBook + 'whats-next', ]), - dict(name=['script', 'noscript', 'style','form','hr'])] + dict(name=['script', 'noscript', 'style','form','hr', 'button'])] no_stylesheets = True extra_css = ''' .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; } diff --git a/recipes/nytimes_sub.recipe b/recipes/nytimes_sub.recipe index fe7ddc9fa7..c66a9757ad 100644 --- a/recipes/nytimes_sub.recipe +++ b/recipes/nytimes_sub.recipe @@ -174,6 +174,7 @@ class NYTimes(BasicNewsRecipe): dict(attrs={'class':[ 'articleFooter', 'articleTools', + 'rfd', 'columnGroup singleRule', 'columnGroup last', 'columnGroup last', @@ -214,6 +215,7 @@ class NYTimes(BasicNewsRecipe): 'videoHeader',#added 02-11-2011 'articleInlineVideoHolder', #added 02-11-2011 'assetCompanionAd', + 'nytint-sectionHeader', re.compile('^subNavigation'), re.compile('^leaderboard'), re.compile('^module'), @@ -248,13 +250,14 @@ class NYTimes(BasicNewsRecipe): 'masthead', 'masthead-nav', 'memberTools', - 'navigation', + 'navigation', 'navigation-ghost', 'navigation-modal', 'navigation-edge', 'portfolioInline', 'readerReviews', 'readerReviewsCount', 'relatedArticles', 'relatedTopics', 'respond', + 'ribbon', 'side_search', 'side_index', 'side_tool', @@ -262,8 +265,9 @@ class NYTimes(BasicNewsRecipe): 'skybox', #added for DealBook 'TopAd', #added for DealBook 'related-content', #added for DealBook + 'whats-next', ]), - dict(name=['script', 'noscript', 'style','form','hr'])] + dict(name=['script', 'noscript', 'style','form','hr', 'button'])] no_stylesheets = True extra_css = ''' .articleHeadline { text-align: left; margin-top:0.5em; margin-bottom:0.25em; }