From 92d23bc007cde6d8abcd55bd16fd272692e89ed1 Mon Sep 17 00:00:00 2001 From: Vinilox Date: Thu, 27 Oct 2016 15:07:55 +0200 Subject: Link plugin : add support for magnets links. --- plugins/link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/link.py b/plugins/link.py index 2c34232c..c8c75918 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -87,7 +87,7 @@ from poezio.xhtml import clean_text from poezio import common from poezio import tabs -url_pattern = re.compile(r'\b(http[s]?://(?:\S+))\b', re.I|re.U) +url_pattern = re.compile(r'\b(?:http[s]?://(?:\S+))|(?:magnet:\?(?:\S+))\b', re.I|re.U) app_mapping = { 'Linux': 'xdg-open', 'Darwin': 'open', -- cgit v1.2.3