fixes input in Gemini

This commit is contained in:
Ploum 2023-10-12 15:23:59 +02:00
parent 2b234cdc43
commit 010288a6fb
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Changes since beta1
- fixes existing non-html ressources marked a to_fetch even when not needed (simple and/or confusion)
- fixes a crash with RSSfeeds without <link> element
- fixes a bug in HTML renderer where some hX element were not closed properly
- fixes input in Gemini while online
- attempt at hiding XMLparsedAsHTMLWarning from BS4 library
- chafa now used by default everywhere if version > 1.10
- ignoring encoding error in ansicat

View File

@ -688,7 +688,8 @@ def _fetch_gemini(url,timeout=DEFAULT_TIMEOUT,interactive=True,accept_bad_ssl_ce
else:
#TODO:FIXME we should not ask for user input while non-interactive
user_input = input("> ")
return _fetch_gemini(query(user_input))
newurl = url.split("?")[0]
return _fetch_gemini(newurl+"?"+user_input)
else:
return None
# Redirects