From 0661c70594231e6e3e60d60a0cfccf6c08de2c75 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sat, 1 Nov 2008 03:30:20 +0000 Subject: [PATCH] add udp to is_url to allow udp trackers --- deluge/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/common.py b/deluge/common.py index 860828b0d..923e1585d 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -320,7 +320,7 @@ def ftime(seconds): def is_url(url): """A simple regex test to check if the URL is valid.""" import re - return bool(re.search('^(https?|ftp)://', url)) + return bool(re.search('^(https?|ftp|udp)://', url)) def fetch_url(url): """Downloads a torrent file from a given