fixed an an/or logical confusion that would cause non-displayable documents to be marked as to be refetched even when not necessary

This commit is contained in:
Lionel Dricot 2023-09-19 14:24:18 +02:00
parent f33a4cb1e9
commit 8c752d7b44
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Changes since beta1
- improves handling of base64 images
- fixes gophermap being considered as gemtext files
- fixes opening mailto links
- fixes existing non-html ressources marked a to_fetch even when not needed (simple and/or confusion)
- attempt at hiding XMLparsedAsHTMLWarning from BS4 library
- chafa now used by default everywhere if version > 1.10

View File

@ -344,7 +344,7 @@ class GeminiClient(cmd.Cmd):
modedurl = mode_url(url,mode)
if not displayed:
#if we cant display, we mark to sync what is not local
if not is_local(url) or not netcache.is_cache_valid(url):
if not is_local(url) and not netcache.is_cache_valid(url):
self.get_list("to_fetch")
r = self.list_add_line("to_fetch",url=modedurl,verbose=False)
if r: