mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-08 12:36:11 +02:00
Change default flaresolverr_proxy_timeout:59000 so it happens before default connect_timeout:60.0
This commit is contained in:
parent
d4fbc73b41
commit
622a4eb44b
3 changed files with 17 additions and 11 deletions
|
|
@ -202,9 +202,10 @@ extratags: FanFiction
|
|||
## between 0.5 and 1.5 times slow_down_sleep_time.
|
||||
#slow_down_sleep_time:0.5
|
||||
|
||||
## How long to wait for each HTTP connection to finish. Longer times
|
||||
## are better for sites that are slow to respond. Shorter times
|
||||
## prevent excessive wait when your network or the site is down.
|
||||
## How long to wait for each HTTP connection to finish in seconds.
|
||||
## Longer times are better for sites that are slow to respond.
|
||||
## Shorter times prevent excessive wait when your network or the site
|
||||
## is down.
|
||||
connect_timeout:60.0
|
||||
|
||||
## Use regular expressions to find and replace (or remove) metadata.
|
||||
|
|
@ -640,7 +641,9 @@ browser_cache_age_limit:4.0
|
|||
## If you want to directly download images while using FlareSolverr
|
||||
## for stories/chapters, you can set:
|
||||
## use_flaresolverr_proxy:directimages
|
||||
## flaresolverr_proxy_timeout is in integer milliseconds
|
||||
## flaresolverr_proxy_timeout is in integer milliseconds.
|
||||
## Keep flaresolverr_proxy_timeout set smaller than connect_timeout
|
||||
## otherwise the connection *to* flaresolverr will timeout first.
|
||||
|
||||
#[www.fanfiction.net]
|
||||
#use_flaresolverr_proxy:true
|
||||
|
|
@ -648,7 +651,7 @@ browser_cache_age_limit:4.0
|
|||
#flaresolverr_proxy_address:localhost
|
||||
#flaresolverr_proxy_port:8191
|
||||
#flaresolverr_proxy_protocol:http
|
||||
#flaresolverr_proxy_timeout:60000
|
||||
#flaresolverr_proxy_timeout:59000
|
||||
|
||||
## Because some adapters can pull chapter URLs from human posts, the
|
||||
## odds of errors in the chapter URLs can be higher for some
|
||||
|
|
|
|||
|
|
@ -222,9 +222,10 @@ extratags: FanFiction
|
|||
## between 0.5 and 1.5 times slow_down_sleep_time.
|
||||
#slow_down_sleep_time:0.5
|
||||
|
||||
## How long to wait for each HTTP connection to finish. Longer times
|
||||
## are better for sites that are slow to respond. Shorter times
|
||||
## prevent excessive wait when your network or the site is down.
|
||||
## How long to wait for each HTTP connection to finish in seconds.
|
||||
## Longer times are better for sites that are slow to respond.
|
||||
## Shorter times prevent excessive wait when your network or the site
|
||||
## is down.
|
||||
connect_timeout:60.0
|
||||
|
||||
## For use only with CLI version--run a command on the generated file
|
||||
|
|
@ -600,7 +601,9 @@ browser_cache_age_limit:4.0
|
|||
## If you want to directly download images while using FlareSolverr
|
||||
## for stories/chapters, you can set:
|
||||
## use_flaresolverr_proxy:directimages
|
||||
## flaresolverr_proxy_timeout is in integer milliseconds
|
||||
## flaresolverr_proxy_timeout is in integer milliseconds.
|
||||
## Keep flaresolverr_proxy_timeout set smaller than connect_timeout
|
||||
## otherwise the connection *to* flaresolverr will timeout first.
|
||||
|
||||
#[www.fanfiction.net]
|
||||
#use_flaresolverr_proxy:true
|
||||
|
|
@ -608,7 +611,7 @@ browser_cache_age_limit:4.0
|
|||
#flaresolverr_proxy_address:localhost
|
||||
#flaresolverr_proxy_port:8191
|
||||
#flaresolverr_proxy_protocol:http
|
||||
#flaresolverr_proxy_timeout:60000
|
||||
#flaresolverr_proxy_timeout:59000
|
||||
|
||||
## Because some adapters can pull chapter URLs from human posts, the
|
||||
## odds of errors in the chapter URLs can be higher for some
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ class FlareSolverr_ProxyFetcher(RequestsFetcher):
|
|||
fs_data = {'cmd': cmd,
|
||||
'url':url,
|
||||
#'userAgent': 'Mozilla/5.0',
|
||||
'maxTimeout': int(self.getConfig("flaresolverr_proxy_timeout","60000")),
|
||||
'maxTimeout': int(self.getConfig("flaresolverr_proxy_timeout","59000")),
|
||||
# download:True causes response to be base64 encoded
|
||||
# which makes images work.
|
||||
'cookies':cookiejar_to_jsonable(filter_cookies(self.get_cookiejar(),url)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue