Commit Graph

196 Commits

Author SHA1 Message Date
Lionel Dricot
6c818f553a the refresh/add new to tour logic was broken after refactorisation 2021-12-19 15:51:59 +01:00
Lionel Dricot
baa0aca61b sanitizing 2021-12-18 10:16:19 +01:00
Lionel Dricot
053502e214 only read text/gemini file and give all the rest to the mime handler 2021-12-17 23:29:47 +01:00
Lionel Dricot
e23f80ab28 forgot to increment a counter 2021-12-17 18:09:55 +01:00
Lionel Dricot
fa014ead75 fixing small bug with some bad formatted links 2021-12-17 15:50:20 +01:00
Lionel Dricot
ba429946ec add / at the end of url if cache is a dir 2021-12-17 15:15:09 +01:00
Lionel Dricot
8651a14e34 no blank line in tour file 2021-12-17 13:59:34 +01:00
Lionel Dricot
843ce388c8 solve a bug when white lines appended it tour file 2021-12-17 12:35:46 +01:00
Lionel Dricot
45a0da6d42 refactorization of fetch_catch, adding logic to add to tour smartly and to randomly reload some old stuff 2021-12-17 12:08:27 +01:00
Lionel Dricot
77ce33173e sugar: http and gemini link are understood without the go command 2021-12-16 16:09:54 +01:00
Lionel Dricot
8ede39dd4d adding --cache-validity option 2021-12-16 15:58:05 +01:00
Lionel Dricot
9d5a1a9e4c don’t refresh more than every 1h 2021-12-16 13:10:55 +01:00
Lionel Dricot
de840bdf9f Solve accessing url without trailing / and add online command 2021-12-16 10:43:25 +01:00
Lionel Dricot
ce38b49ba6 by default, mimetype is text/gemini 2021-12-15 11:49:40 +01:00
Lionel Dricot
502668c3c6 support for caching every MIMETYPE 2021-12-15 11:45:55 +01:00
Lionel Dricot
3d6c702fda more elegant solution when redirecting to index.gmi 2021-12-15 11:05:38 +01:00
Lionel Dricot
10d6c3110f Hell of a hack for naughty bug + handle offline reload 2021-12-14 16:33:17 +01:00
Lionel Dricot
1a21c902cb content not cached will be marked for next sync 2021-12-14 16:07:02 +01:00
Lionel Dricot
f457f08c2f new links found while syncing are automatically added to tour (and tour is preserved accross session 2021-12-14 15:26:37 +01:00
Lionel Dricot
f1d85094c9 tour is now saved accross session 2021-12-14 15:12:43 +01:00
Lionel Dricot
72f2b5f91c --synconly is now --sync and has a fancy output 2021-12-14 14:06:07 +01:00
Lionel Dricot
1bf23193c4 trying to not open xml files in synconly also prevented parsing and thus recursive retrieval 2021-12-14 13:29:09 +01:00
Lionel Dricot
2ac144dc00 offline web browser option 2021-12-13 14:30:40 +01:00
Lionel Dricot
a5c2341785 synconly a lot more faster and efficient 2021-12-13 13:49:12 +01:00
Lionel Dricot
4212a4fd2b off-98 prompt 2021-12-10 15:24:26 +01:00
Lionel Dricot
9da4fd150b basic --synconly mode is now working 2021-12-10 11:27:48 +01:00
Lionel Dricot
6586f0834a some links are still crashing with sync_only 2021-12-09 18:05:46 +01:00
Lionel Dricot
0c333ce4bb sync-only mode now cache bookmarks 2021-12-09 17:23:50 +01:00
Lionel Dricot
f58b96e894 first step for a sync_only mode 2021-12-09 15:12:32 +01:00
Lionel Dricot
9fb7c610bf ugly hack to fix caching for URL without / at the end 2021-12-07 13:08:43 +01:00
Lionel Dricot
9cc713431c Offline now works for basic usecase ! 2021-12-06 17:03:22 +01:00
Lionel Dricot
b1c9220fc5 offline switchg 2021-12-06 16:43:16 +01:00
Lionel Dricot
acdc83ed6d permanent cache is now created 2021-12-06 16:17:01 +01:00
Lionel Dricot
07ee2e9782 cache path by default 2021-12-04 21:01:11 +01:00
Lionel Dricot
1fff962e45 bad code to have cache_path 2021-12-04 19:52:08 +01:00
Lionel Dricot
79b24e960c adding comment to understand 2021-12-02 16:27:14 +01:00
Björn Wärmedal
62898d3938 Jake's solution for the local files bug 2021-11-18 12:02:00 +01:00
Björn Wärmedal
292a68fc23 Removed a bunch of unnecessary certificate checks. 2021-10-06 11:07:08 +02:00
Björn Wärmedal
49db2732be Updated contributors list. Thank you Jake for the tour reverse-range and https proxy solutions! 2021-08-25 08:07:18 +02:00
Björn Wärmedal
6c38132259 Added https proxy setting, similar to gopher proxy. Also bumped version number. 2021-08-25 08:03:12 +02:00
Björn Wärmedal
4408963c69 Reverse tour add: 'tour 50-40' will now add all links in that range in that order. 2021-08-25 08:01:16 +02:00
Björn Wärmedal
7468dcef77 replaced GUS with geminispace.info, since GUS is dead 2021-04-27 09:55:12 +02:00
Björn Wärmedal
c86cbdedca Increased default timeout (geminispace.info searches usually take longer) 2021-04-27 09:53:58 +02:00
Björn Wärmedal
b6bae540ba Show name of activated client cert 2021-02-03 08:06:27 +01:00
Solderpunk
129c56c1d4 Fix another hasty cache hack bug. 2020-09-03 21:21:04 +02:00
Solderpunk
ba0f707669 Ignore the cache when reloading a page. 2020-09-01 23:27:59 +02:00
Solderpunk
67f9c662b3 Add option to disable caching. 2020-09-01 23:11:55 +02:00
Solderpunk
545d5f917d Count cache hits in black box output. 2020-09-01 21:14:17 +02:00
Solderpunk
f45630450f Make sure early terminations of _fetch_over_network happen via an exception, not by returning None. Factor out certificate handling interface. 2020-08-31 21:18:15 +02:00
Solderpunk
4e8f3dcd05 Fix variable name bug introduced by hasty hacking of cache system. 2020-08-31 21:17:06 +02:00