forked from solderpunk/AV-98
Visually distinguish non-Gemini links from Gemini links.
This commit is contained in:
parent
969d3c1b18
commit
da8b6cc7f3
3
av98.py
3
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
|
||||
|
|
Loading…
Reference in New Issue