Fix EPUB version of Christian Science Monitor. Fixes #1578 (News - dl News not saving .epub properly)

This commit is contained in:
Kovid Goyal 2009-01-09 10:37:41 -08:00
parent 5e057aa907
commit 0c1924bb93

View File

@ -42,3 +42,9 @@ class ChristianScienceMonitor(BasicNewsRecipe):
feeds[-1][1].append(art)
return feeds
def postprocess_html(self, soup, first_fetch):
html = soup.find('html')
if html is None:
return soup
html.extract()
return html