Fix for fimf not working with manual is_adult (caching issue).

This commit is contained in:
Jim Miller 2014-11-16 09:56:04 -06:00
parent 36bd28f90a
commit 1ecfb68fb2

View file

@ -88,7 +88,10 @@ class FimFictionNetSiteAdapter(BaseSiteAdapter):
## Get the story's title page. Check if it exists.
try:
data = self.do_fix_blockquotes(self._fetchUrl(self.url))
# don't use cache if manual is_adult--should only happen
# if it's an adult story and they don't have is_adult in ini.
data = self.do_fix_blockquotes(self._fetchUrl(self.url,
usecache=(not self.is_adult)))
soup = bs.BeautifulSoup(data)
except urllib2.HTTPError, e:
if e.code == 404: