mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix EPUB version of Christian Science Monitor. Fixes #1578 (News - dl News not saving .epub properly)
This commit is contained in:
parent
5e057aa907
commit
0c1924bb93
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user