Link plugin : add support for magnets links.

This commit is contained in:
Vinilox 2016-10-27 15:07:55 +02:00 committed by louiz’
parent d529b13729
commit 92d23bc007

View file

@ -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',