From 22699afa53e91ccebb4513dcb1a4e192956ea444 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 11 Jun 2020 09:55:58 +0100 Subject: [PATCH] Web links for various formats --- content.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/content.py b/content.py index 214f46ba..138c985f 100644 --- a/content.py +++ b/content.py @@ -126,7 +126,10 @@ def addMusicTag(content: str, tag: str) -> str: def addWebLinks(content: str) -> str: """Adds markup for web links """ - if not ('https://' in content or 'http://' in content): + if not ('https://' in content or 'http://' in content or + 'i2p://' in content or 'gnunet://' in content or + 'gemini://' in content or 'gopher://' in content or + 'hyper://' in content or 'dat://' in content): return content maxLinkLength = 40