From 6d3acf6dca8105f4b132d876f443c0cd3be98a69 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 84858c1fd..1926c1894 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -214,7 +214,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 is_magnet(uri): """Returns True if uri is a valid bittorrent magnet uri."""