Link plugin : add support for magnets links.
This commit is contained in:
parent
d529b13729
commit
92d23bc007
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue