From 390d85b008a3eb30cdb98b27f57d74fa5c48f441 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sun, 6 Jul 2008 20:25:04 +0000 Subject: [PATCH] allow for udp trackers --- deluge/ui/gtkui/edittrackersdialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/edittrackersdialog.py b/deluge/ui/gtkui/edittrackersdialog.py index 73058682d..64c2730a0 100644 --- a/deluge/ui/gtkui/edittrackersdialog.py +++ b/deluge/ui/gtkui/edittrackersdialog.py @@ -161,7 +161,7 @@ class EditTrackersDialog: log.debug("on_button_add_ok_clicked") from re import search as re_search tracker = self.glade.get_widget("entry_tracker").get_text() - if not re_search("https?://", tracker): + if not re_search("[udp|http]s?://", tracker): # Bad url.. lets prepend http:// tracker = "http://" + tracker