From ba2c2f0d0e094234829215bbedd87489a4551249 Mon Sep 17 00:00:00 2001 From: Lionel Dricot Date: Thu, 3 Feb 2022 16:49:23 +0100 Subject: [PATCH] updated VERSIONS --- VERSIONS | 13 +++++++++++-- offpunk.py | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/VERSIONS b/VERSIONS index a494188..571a9eb 100644 --- a/VERSIONS +++ b/VERSIONS @@ -1,5 +1,14 @@ # Offpunk History +## 0.2.1 or 0.3 - Unreleased + +Small improvements: +- Disabled https_everywhere by default (caching problems and some websites not supporting it) +- Modified --sync logic to make it more intuitive (thanks Bjorn Westergard) +- Caching more problems to avoid refetch +- Offpunk has now an User-Agent when http browsing to avoid being blocked as a bot +- Changed XDG logic to improve compatibility (thanks Klaus Alexander) + ## 0.2 - Jan 31st 2022 - config directories have been moved to follow the XDG specifications - support for http, https and mailto links (https_everywhere is enabled by default, see "set" command) @@ -14,8 +23,8 @@ => gemini://rawtext.club/~ploum/2022-01-31-offpunk02.gmi Announcing Offpunk 0.2 ## 0.1 - Jan 3rd 2022 -- initial release as an independant software from AV-98 -- Including contributions published by Bjorn on Notabug. +- initial release as an independant software from AV-98 (thanks solarpunk) +- Including contributions published by Bjorn on Notabug (thanks ew0k) - less used by default for all content with custom options - online/offline mode - content is cached for offline use diff --git a/offpunk.py b/offpunk.py index 2cca13d..cfbdb42 100755 --- a/offpunk.py +++ b/offpunk.py @@ -673,6 +673,8 @@ class GeminiItem(): # URL/subfolder/file.gmi. # This causes loss of data in the cache # proper solution would be to save "sufolder" as "sufolder/index.gmi" + # If the subdirectory doesn’t exist, we recursively try to find one + # until it exists to avoid a file blocking the creation of folders root_dir = cache_dir while not os.path.exists(root_dir): root_dir = os.path.dirname(root_dir)