From da8b6cc7f31d220f2125eb6f6d3c6c7f7f9e294e Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Sun, 30 Aug 2020 17:23:36 +0200 Subject: [PATCH] Visually distinguish non-Gemini links from Gemini links. --- av98.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/av98.py b/av98.py index 61ab9aa..7f32e3a 100755 --- a/av98.py +++ b/av98.py @@ -864,7 +864,8 @@ Slow internet connection? Use 'set timeout' to be more patient.""") subprocess.call(shlex.split(cmd_str % self.idx_filename)) def _format_geminiitem(self, index, gi, url=False): - line = "[%d] %s" % (index, gi.name or gi.url) + protocol = "" if gi.scheme == "gemini" else " %s" % gi.scheme + line = "[%d%s] %s" % (index, protocol, gi.name or gi.url) if gi.name and url: line += " (%s)" % gi.url return line