mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-05 19:11:50 +02:00
Add usecache to fetchUrl in ffnet adapter for 'get urls from page'.
This commit is contained in:
parent
d5d96aa2a5
commit
0d03001dd0
1 changed files with 6 additions and 6 deletions
|
|
@ -76,14 +76,14 @@ class FanFictionNetSiteAdapter(BaseSiteAdapter):
|
|||
def getSiteURLPattern(self):
|
||||
return r"https?://(www|m)?\.fanfiction\.net/s/\d+(/\d+)?(/|/[^/]+)?/?$"
|
||||
|
||||
def _fetchUrl(self,url,parameters=None,extrasleep=1.0):
|
||||
# time.sleep(1.0) ## ffnet(and, I assume, fpcom) tends to fail
|
||||
# ## more if hit too fast. This is in
|
||||
# ## additional to what ever the
|
||||
# ## slow_down_sleep_time setting is.
|
||||
def _fetchUrl(self,url,parameters=None,extrasleep=1.0,usecache=True):
|
||||
## ffnet(and, I assume, fpcom) tends to fail more if hit too
|
||||
## fast. This is in additional to what ever the
|
||||
## slow_down_sleep_time setting is.
|
||||
return BaseSiteAdapter._fetchUrl(self,url,
|
||||
parameters=parameters,
|
||||
extrasleep=extrasleep)
|
||||
extrasleep=extrasleep,
|
||||
usecache=usecache)
|
||||
|
||||
def use_pagecache(self):
|
||||
'''
|
||||
|
|
|
|||
Loading…
Reference in a new issue