Commit without Fimf re-soup--it's in base_adapter make_soup instead.

This commit is contained in:
Jim Miller 2015-01-04 17:41:48 -06:00
parent 0284fa7e78
commit 7824361518

View file

@ -121,9 +121,7 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
##----------------------------------------------------------------------------------------------------
## Extract metadata
#re-souping because BS4 can apparently get confused by badly-nested tags in the story description,
#this ensures the final soup is made from clean HTML
storyContentBox = self.make_soup(unicode(soup.find('div', {'class':'story_content_box'})))
storyContentBox = soup.find('div', {'class':'story_content_box'})
# Title
title = storyContentBox.find('a', {'class':re.compile(r'.*\bstory_name\b.*')})