Fix #5993 (New York Times recipe - ads preventing articles from being downloaded)

This commit is contained in:
Kovid Goyal 2010-06-27 10:09:23 -06:00
parent dbcda9a0d8
commit 4b0ca2408b

View File

@ -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')