Commit graph

57 commits

Author SHA1 Message Date
Jim Miller
b43bec4126 Import brotlidecpy directly for A-shell on iOS users. 2023-02-17 14:23:46 -06:00
Jim Miller
f29f3f973a Comment out some debug 2023-02-03 09:00:06 -06:00
Jim Miller
b14590c112 Skip day of week for localization in browsercache_firefox2 2023-01-15 14:46:51 -06:00
Jim Miller
4e0aa707b9 Move makeDate to dateutils to call from browsercache_firefox2 2023-01-15 13:17:50 -06:00
Jim Miller
0e1e92750c Use scheme in cache keys for http vs https 2023-01-06 13:29:53 -06:00
Jim Miller
b27854b8a5 Newer default date due to timezones 2023-01-06 13:05:51 -06:00
Jim Miller
2c504ae67e Change header labels to all lowercase. 2023-01-06 13:04:56 -06:00
Jim Miller
7873e25779 Make py2.7 compatible. 2023-01-06 11:29:43 -06:00
Jim Miller
f468611b01 Firefox2 cache dates, convert UTC to local 2023-01-06 11:18:08 -06:00
Jim Miller
0036ba94d9 Tweak debug output 2023-01-05 13:11:54 -06:00
Jim Miller
3711663a12 Take firefox cached time from response header. 2023-01-05 13:11:17 -06:00
Jim Miller
7e2eb531ba Comment some debugs, tweak browser cache to do normal sleep after open browser 2023-01-02 19:24:40 -06:00
Jim Miller
001cdd34c7 Tweaks to browser cache 2023-01-01 13:06:03 -06:00
Jim Miller
f613fea791 Location: and location: headers both used... 2023-01-01 13:06:03 -06:00
Jim Miller
ccd25b0c93 Only apply open_page_in_browser when use_browser_cache_only:true 2023-01-01 13:06:03 -06:00
Jim Miller
60c14c2cef Add key list to browser cache to look for WebToEpub cache entries 2023-01-01 13:06:03 -06:00
Jim Miller
895274ad24 Scandir for cache troubleshooting 2023-01-01 13:06:03 -06:00
Jim Miller
adeb9f26c3 Move open_page_in_browser up into BrowserCacheDecorator 2023-01-01 13:06:03 -06:00
Jim Miller
c3631f6ac7 Change BrowserCache to on-demand, not scan 2023-01-01 13:06:03 -06:00
Jim Miller
1301fc3dc4 Rename browsercache files before changing contents to preserve history. 2023-01-01 13:06:03 -06:00
Jim Miller
c6705a82db Refactoring for browser cache v2/fetcher 2023-01-01 13:06:03 -06:00
Jim Miller
ea66ae350b Use logger.warning() not .warn() consistently. 2022-01-30 19:32:42 -06:00
Josh Cotton
7011250353 Revert "Merge branch 'jcotton42-patreon'"
This removes support for Patreon, as discussed in #770.

This reverts commit df26e74145, reversing
changes made to 23e4f9468d.
2021-11-20 13:30:08 -08:00
Josh Cotton
1466ff2422 Patreon support using the browser cache. 2021-11-18 18:19:04 -08:00
Jim Miller
de01752a8b Allow fictionpress.com with use_browser_cache--user still needs to configure in personal.ini Closes #716 2021-07-14 13:09:12 -05:00
Jim Miller
e2a3b48481 Change blockfilecache to save uint32 addrs instead of original cache key. Hashing cache key proved unreliable in some cases. 2021-07-14 12:58:10 -05:00
Jim Miller
5dd2d3297c Implement use_browser_cache for ficbook.net. 2021-06-21 12:18:24 -05:00
Jim Miller
63c7edcecc Forgot to import traceback for browser cache changes. 2021-06-16 08:56:06 -05:00
Jim Miller
935a0b2413 Browser Cache Firefox Cache2 -- Skip with warning on bad file parse instead of error. #706 2021-06-15 15:25:34 -05:00
Jim Miller
cce2f18d0c Browser Cache Chome Simple Cache -- Skip with warning on bad file parse instead of error. 2021-06-15 15:16:55 -05:00
Jim Miller
6533f1a3c6 Report browser cache load fail as such. 2021-05-04 12:48:01 -05:00
Jim Miller
b77b5ccc1b Fix a typo in comment. 2021-05-04 12:26:55 -05:00
Jim Miller
8a7423d27f Remove some dup imports/code, thanks akshgpt7. Closes #663 2021-02-23 15:08:42 -06:00
Jim Miller
3222b0cedd Don't require index file in Firefox cache2. 2021-02-17 09:22:58 -06:00
Jim Miller
868742f9d9 Add scandir & stat checking for simplecache for performance. 2021-02-08 16:02:24 -06:00
Jim Miller
adfc7494d1 First version of Firefox cache2 reader. 2021-02-07 15:02:36 -06:00
Jim Miller
f917e3955c Change browser_cache to load on-demand and share cache/cookie instances in Calibre BG jobs. 2021-02-05 13:06:14 -06:00
Jim Miller
2a93c9191a Implement browser_cache_age_limit setting (float hours to use cache) 2021-02-04 14:08:06 -06:00
Jim Miller
49bbd95880 Remember, browser cache is hard coded to only work with ffnet so far. 2021-02-03 13:19:49 -06:00
Jim Miller
4d1326c1bb Add bit more diag output. 2021-02-03 13:17:04 -06:00
Jim Miller
14f3d71f70 Browser cache sharing in plugin too. 2021-02-03 12:54:40 -06:00
Jim Miller
5ee4a2e572 Browser cache sharing in CLI, but not plugin. 2021-02-03 12:18:03 -06:00
Jim Miller
0cc7aa54c7 Add share_open() for windows locked file nonsense. 2021-02-03 09:54:54 -06:00
Jim Miller
1a3a6ec1e0 Comment out a debug. 2021-02-02 20:17:11 -06:00
Jim Miller
9f13145b2c Still only for ffnet, but browser cache now saves the newest entry and other improvements. 2021-02-02 17:34:58 -06:00
Jim Miller
0795225cc7 Fix SimpleCache.is_cache_dir 2021-02-02 11:15:01 -06:00
Jim Miller
738d520938 Strip ffnet urls of title too 2021-02-02 10:01:30 -06:00
Jim Miller
07dee591ab First (terrible ffnet only) version of scanning, remembering and using cache keys. 2021-02-01 20:04:47 -06:00
Jim Miller
c1ecaf668e Refactor browser cache stuff some. 2021-02-01 17:02:57 -06:00
Jim Miller
26f9ef0290 Incorporate changes from #642 (manually) 2021-02-01 14:12:05 -06:00