mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-29 12:16:27 +01:00
Fix for fimf not working with manual is_adult (caching issue).
This commit is contained in:
parent
36bd28f90a
commit
1ecfb68fb2
1 changed files with 4 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue