From 6d0495eab86fd26c91e34e5af78ca21c72c0b311 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Wed, 11 Jan 2023 11:00:29 -0600 Subject: [PATCH] Add open_pages_in_browser setting to defaults.ini --- calibre-plugin/plugin-defaults.ini | 20 +++++++++++++------- fanficfare/defaults.ini | 20 +++++++++++++------- 2 files changed, 26 insertions(+), 14 deletions(-) diff --git a/calibre-plugin/plugin-defaults.ini b/calibre-plugin/plugin-defaults.ini index d1c7385f..ae8c6cf7 100644 --- a/calibre-plugin/plugin-defaults.ini +++ b/calibre-plugin/plugin-defaults.ini @@ -546,12 +546,8 @@ user_agent:FFF/4.X ## browsers added an additional directory level, 'Cache_Data', in ## early 2022. -## Note also that browser_cache_path goes under [defaults] because -## browser cache is read once and shared between all downloads for -## performance. - -## Further note that there is a time cost to first reading the browser -## cache on each download session (not Calibre session) +## Note also that browser_cache_path is recommended under [defaults], +## but use_browser_cache should go under individual [site] sections. ## windows: ### Chrome: @@ -578,9 +574,19 @@ user_agent:FFF/4.X ## or more. You can limit the age of cached files FFF will use from ## browser_cache_path with browser_cache_age_limit. Only cached files ## that were downloaded within 'browser_cache_age_limit' hours will be -## used. If set to -1, all cached files will be used. +## used. If set to -1, all cached files will be used. Note that not +## all sites allow page caching--those will not work with the browser +## cache feature. browser_cache_age_limit:4.0 +## If browser_cache_path is set *and* use_browser_cache:true *and* +## use_browser_cache_only:true, then you can also set +## open_pages_in_browser:true then FFF to attempt to open each page it +## can't already find in browser cache in your default browser, then +## check for it in the cache again. Note that your browser_cache_path +## setting *must* use your default browser for this to work. +#open_pages_in_browser:false + ## As a (second) work around for certain sites blocking automated ## downloads, FFF offers the ability to request pages through nsapa's ## fanfictionnet_ff_proxy and FlareSolverr proxy servers. See diff --git a/fanficfare/defaults.ini b/fanficfare/defaults.ini index 4d8a5824..a2a5478c 100644 --- a/fanficfare/defaults.ini +++ b/fanficfare/defaults.ini @@ -528,12 +528,8 @@ user_agent:FFF/4.X ## browsers added an additional directory level, 'Cache_Data', in ## early 2022. -## Note also that browser_cache_path goes under [defaults] because -## browser cache is read once and shared between all downloads for -## performance. - -## Further note that there is a time cost to first reading the browser -## cache on each download session (not Calibre session) +## Note also that browser_cache_path is recommended under [defaults], +## but use_browser_cache should go under individual [site] sections. ## windows: ### Chrome: @@ -560,9 +556,19 @@ user_agent:FFF/4.X ## or more. You can limit the age of cached files FFF will use from ## browser_cache_path with browser_cache_age_limit. Only cached files ## that were downloaded within 'browser_cache_age_limit' hours will be -## used. If set to -1, all cached files will be used. +## used. If set to -1, all cached files will be used. Note that not +## all sites allow page caching--those will not work with the browser +## cache feature. browser_cache_age_limit:4.0 +## If browser_cache_path is set *and* use_browser_cache:true *and* +## use_browser_cache_only:true, then you can also set +## open_pages_in_browser:true then FFF to attempt to open each page it +## can't already find in browser cache in your default browser, then +## check for it in the cache again. Note that your browser_cache_path +## setting *must* use your default browser for this to work. +#open_pages_in_browser:false + ## As a (second) work around for certain sites blocking automated ## downloads, FFF offers the ability to request pages through nsapa's ## fanfictionnet_ff_proxy and FlareSolverr proxy servers. See