Update New York Times

This commit is contained in:
Kovid Goyal 2014-01-10 09:22:56 +05:30
parent 184b788e2b
commit 9076786195
2 changed files with 13 additions and 4 deletions

View File

@ -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; }

View File

@ -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; }