mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #2240 (New Yorker download has issues)
This commit is contained in:
parent
bb53380677
commit
9466f30981
@ -42,3 +42,12 @@ class NewYorker(BasicNewsRecipe):
|
|||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url + '?printable=true'
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user