mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-26 16:04:47 +01: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
1 changed files with 6 additions and 0 deletions
|
|
@ -42,3 +42,9 @@ def parse_index(self):
|
|||
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…
Reference in a new issue