mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5993 (New York Times recipe - ads preventing articles from being downloaded)
This commit is contained in:
parent
dbcda9a0d8
commit
4b0ca2408b
@ -156,7 +156,7 @@ class RecursiveFetcher(object):
|
||||
|
||||
replace = self.prepreprocess_html_ext(soup)
|
||||
if replace is not None:
|
||||
soup = BeautifulSoup(xml_to_unicode(src, self.verbose, strip_encoding_pats=True)[0], markupMassage=nmassage)
|
||||
soup = BeautifulSoup(xml_to_unicode(replace, self.verbose, strip_encoding_pats=True)[0], markupMassage=nmassage)
|
||||
|
||||
if self.keep_only_tags:
|
||||
body = Tag(soup, 'body')
|
||||
|
Loading…
x
Reference in New Issue
Block a user