From 14a57c6d004e8a403cbdacad4370852b72e822c5 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 14 Aug 2007 19:21:00 +0000 Subject: [PATCH] add checking for url in web seed plugin --- plugins/WebSeed/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/WebSeed/__init__.py b/plugins/WebSeed/__init__.py index 8e1c39156..f13abe333 100644 --- a/plugins/WebSeed/__init__.py +++ b/plugins/WebSeed/__init__.py @@ -65,4 +65,6 @@ class webseedMenu: response = self.dialog.run() self.dialog.hide() if response: - self.core.add_url_seed(self.unique_ID, self.glade.get_widget("txt_url").get_text()) + text = self.glade.get_widget("txt_url").get_text().strip() + if common.is_url(text): + self.core.add_url_seed(self.unique_ID, text)