This commit is contained in:
Kovid Goyal 2018-02-27 23:08:14 +05:30
parent c5465e8aa4
commit 700f61df36
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 12 additions and 0 deletions

View File

@ -95,6 +95,12 @@ class NewYorkTimes(BasicNewsRecipe):
classes('story-print-citation supported-by accessibility-ad-header visually-hidden'),
]
def postprocess_html(self, soup, first_fetch):
t = soup.find(**classes('dateline'))
if t is not None:
t.insert(0, ' ')
return soup
def read_nyt_metadata(self):
INDEX = 'https://www.nytimes.com/section/todayspaper'
# INDEX = 'file:///t/raw.html'

View File

@ -95,6 +95,12 @@ class NewYorkTimes(BasicNewsRecipe):
classes('story-print-citation supported-by accessibility-ad-header visually-hidden'),
]
def postprocess_html(self, soup, first_fetch):
t = soup.find(**classes('dateline'))
if t is not None:
t.insert(0, ' ')
return soup
def read_nyt_metadata(self):
INDEX = 'https://www.nytimes.com/section/todayspaper'
# INDEX = 'file:///t/raw.html'