Fix #2240 (New Yorker download has issues)

This commit is contained in:
Kovid Goyal 2009-04-08 20:21:45 -07:00
parent bb53380677
commit 9466f30981

View File

@ -42,3 +42,12 @@ class NewYorker(BasicNewsRecipe):
def print_version(self, url):
return url + '?printable=true'
def postprocess_html(self, soup, x):
body = soup.find('body')
if body:
html = soup.find('html')
if html:
body.extract()
html.insert(-1, body)
return soup