mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 07:15:28 +01:00
Update New York Times
This commit is contained in:
parent
184b788e2b
commit
9076786195
2 changed files with 13 additions and 4 deletions
|
|
@ -174,6 +174,7 @@ def decode_url_date(self,url):
|
|||
dict(attrs={'class':[
|
||||
'articleFooter',
|
||||
'articleTools',
|
||||
'rfd',
|
||||
'columnGroup singleRule',
|
||||
'columnGroup last',
|
||||
'columnGroup last',
|
||||
|
|
@ -214,6 +215,7 @@ def decode_url_date(self,url):
|
|||
'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 @@ def decode_url_date(self,url):
|
|||
'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 @@ def decode_url_date(self,url):
|
|||
'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; }
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ def decode_url_date(self,url):
|
|||
dict(attrs={'class':[
|
||||
'articleFooter',
|
||||
'articleTools',
|
||||
'rfd',
|
||||
'columnGroup singleRule',
|
||||
'columnGroup last',
|
||||
'columnGroup last',
|
||||
|
|
@ -214,6 +215,7 @@ def decode_url_date(self,url):
|
|||
'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 @@ def decode_url_date(self,url):
|
|||
'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 @@ def decode_url_date(self,url):
|
|||
'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; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue